Open bumi opened 6 years ago
Looks like it may be as easy as adding release: rails db:migrate
to the Procfile (http://mentalized.net/journal/2017/04/22/run-rails-migrations-on-heroku-deploy/)
ah nice. prima: https://devcenter.heroku.com/articles/release-phase
dann sollten wir noch das Procfile auch noch anständig konfigurieren. mit unicorn als app server vermutlich?
Heroku scheint kein großer Fan von Unicorn-Servern zu sein:
Heroku recommends using the Puma web server instead of Unicorn. If you are using Unicorn, your application is not protected against a slow client attack.
https://devcenter.heroku.com/articles/rails-unicorn
Was würde denn gegen Puma sprechen?
added a Procfile - but if fails currently (see heroku or travis logs) - not sure if that is a temporary error... I will try it again tomorrow.
Currently heroku automaticall deploys the master brancht but does not run any migration tasks und thus breaks the app if a migration is required. We must configure a proper deployment process there.