Clever Cloud is a PaaS platform where you can deploy your applications with ease. To setup Chatwoot on Clever Cloud, you can follow the steps described below.
Chatwoot requires PostgreSQL and Redis to function properly. Select Postgres and Redis from CleverCloud addons.
DATABASE_URL
environment variablegit clone git@github.com:chatwoot/chatwoot.git
Set Clever Cloud origin
git remote add clever git+ssh://git@<id>.clever-cloud.com/<app-name>.git
To install the dependencies, you have to setup builds hooks. Set the following in the environment variables of the application.
CC_POST_BUILD_HOOK="RAILS_ENV=production rails assets:precompile"
CC_PRE_BUILD_HOOK="yarn install"
CC_PRE_RUN_HOOK="rake db:chatwoot_prepare"
Push the latest code from your local machine to Clever Cloud.
git push clever master
Voila! After the deployment, you would be able to access the application.
**Notes: **
Make sure you have the following environment variables configured in the application.
CC_POST_BUILD_HOOK="RAILS_ENV=production rails assets:precompile"
CC_PRE_BUILD_HOOK="yarn install"
CC_PRE_RUN_HOOK="rake db:chatwoot_prepare"
DATABASE_URL="<postgres-addon-url>"
FRONTEND_URL="<clever-cloud-app-url>"
PORT="8080"
RAILS_ENV="production"
REDIS_URL="<redis-addon-url>"
SECRET_KEY_BASE="<long-secret-key>"