Deployment

How to deploy your app

How to deploy to Heroku

First installation

heroku login  
heroku create  
bundle lock --add-platform x86_64-linux  
heroku addons:create heroku-postgresql:hobby-dev  
heroku addons:create heroku-redis:hobby-dev  
heroku buildpacks:set heroku/ruby
heroku buildpacks:add --index 1 heroku/nodejs
heroku config:set NPM_CONFIG_PRODUCTION=false YARN_PRODUCTION=false
heroku config:set APP_EMAIL_FROM=from@example.com # insert your own value here
heroku config:set APP_EMAIL_HELP=support@example.com # insert your own value here
git add . && git commit -m 'ready for prod'  
git push heroku main  
heroku ps:scale worker=1
heroku run rails db:seed

After this first installation, all you have to do once you want to deliver a new feature is :

git add . && git commit -m 'my new feature'  
git push heroku main  

Look for CircleCI integration in your version control system (GitHub, or GitLab, or equivalent).

The application is already prepared for CircleCI, the configuration is under .circleci/config.yml

Once the (hopefully green!) build is over, check the "artifacts" tab, and open the file that ends with "coverage/index.html".