Sets up a standard Procfile for Heroku to start Puma and run migrations automatically on release
Used 17 times
A
Andy Waite
Usage
This configures a Rails app for use in Heroku, matching the recommendation at https://devcenter.heroku.com/articles/getting-started-with-rails6#create-a-procfile
Run this command in your Rails app directory in the terminal:
rails app:template LOCATION="https://railsbytes.com/script/zl0sOA"
Template Source
Review the code before running this template on your machine.
run "echo 'web: bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development}' >> Procfile"
run "echo 'release: bundle exec rails db:migrate' >> Procfile";