Today I Learned
Run migrations after a deploy to Heroku. In Procfile
, add a release
command:
web: bin/rails server -p $PORT
release: rails db:migrate
Learnt via Justin Searls’s The Selfish Programmer talk.
Run migrations after a deploy to Heroku. In Procfile
, add a release
command:
web: bin/rails server -p $PORT
release: rails db:migrate
Learnt via Justin Searls’s The Selfish Programmer talk.