Skip to content

CleverCloud/strapi

Repository files navigation

Deploy Strapi on Clever Cloud

This project is a Strapi application already configured to be deployed on Clever Cloud and use use object storage with Cellar. It's a full configuration demo to complete this great article from Pierre Guézennec

🚀 Getting started with Strapi

Strapi comes with a full featured Command Line Interface (CLI) which lets you scaffold and manage your project in seconds.

develop

Start your Strapi application with autoReload enabled. Learn more

npm run develop
# or
yarn develop

start

Start your Strapi application with autoReload disabled. Learn more

npm run start
# or
yarn start

build

Build your admin panel. Learn more

npm run build
# or
yarn build

⚙️ Deployment

Strapi gives you many possible deployment options for your project including Strapi Cloud. Browse the deployment section of the documentation to find the best solution for your use case.

💡 Deploy on Clever Cloud ☁️

Deploy this app with the following tools:

A Node.js application

Inject the following environment variables:

ADMIN_JWT_SECRET="<your-token>"
API_TOKEN_SALT="<your-token>"
APP_KEYS="<your-token>,<your-token>,<your-token>,<your-token>"
CC_NODE_BUILD_TOOL="yarn"
CELLAR_ADDON_REGION="fr-par"
CELLAR_BUCKET="<your-bucket-name>"
DATABASE_CLIENT="postgres"
HOST="0.0.0.0"
JWT_SECRET="<your-token>"
NODE_ENV="production"
TRANSFER_TOKEN_SALT="<your-token>"

Run openssl rand -hex 32 for each value and replace <your-token> with the result.

A PostgreSQL add-on

Environment variables have already been set in the code.

A Cellar add-on

This project uses @strapi/provider-upload-aws-s3 to store assets and has already been set up.

Don't forget to connect your add-ons to the application (Service dependencies option from your app menu in Clever Cloud Console).

Dedicated build instance

Strapi can run on a small instance like the XS plan, but the build process can take more RAM and CPU. Enable a dedicated build instance from your app menu Information option in Clever Cloud Console.

📚 Learn more

  • Resource center - Strapi resource center.
  • Strapi documentation - Official Strapi documentation.
  • Strapi tutorials - List of tutorials made by the core team and the community.
  • Strapi blog - Official Strapi blog containing articles made by the Strapi team and the community.
  • Changelog - Find out about the Strapi product updates, new features and general improvements.

Feel free to check out the Strapi GitHub repository. Your feedback and contributions are welcome!

✨ Community

  • Discord - Come chat with the Strapi community including the core team.
  • Forum - Place to discuss, ask questions and find answers, show your Strapi project and get feedback or just talk with other Community members.
  • Awesome Strapi - A curated list of awesome things related to Strapi.

🤫 Psst! Strapi is hiring.

Releases

No releases published

Packages

No packages published