Heroku Procfile

Public
Sets up a standard Procfile for Heroku to start Puma and run migrations automatically on release
Icons/chart bar
Used 12 times
Created by
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";
Comments

Sign up or Login to leave a comment.