Originally appeared on BootrAils.

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 [email protected] # insert your own value here
heroku config:set [email protected] # 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…

Source link

Leave a reply

Please enter your comment!
Please enter your name here