bumi / decent-organizations

A collection of resources for decent organizations
http://bumi.github.io/decent-organizations
3 stars 1 forks source link

Continuous deployment to heroku #22

Open bumi opened 6 years ago

bumi commented 6 years ago

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.

Plsr commented 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/)

bumi commented 6 years ago

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?

Plsr commented 6 years ago

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?

bumi commented 6 years ago

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.