Release phase script
I would like to have an easy way to run certain things right before something gets deployed, similar to the "release phase" on Heroku (https://devcenter.heroku.com/articles/release-phase). I'm thinking of migrating the db or uploading assets.
https://architecturenotes.co/12-factor-app-revisited/ -> another article which emphasises the need of the release phase.
Since our additional machine dependency requirements necessitate a Docker based setup, this is preventing our switch from Heroku as well.
This also prevents me from migration away from Heroku.
Since we are using Docker deploy, the release phase is a crucial requirement for us too!
Unfortunately, we have to put heroku to render migration on hold as I can't see a clean way of performing postgres migrations for our django app.
Render looks promising and we are rooting for it!
Merged in a post:
Pre Start Command For Docker Deploy
When using a Docker deploy I will need to run database migrations for my web app at some point.
Currently I am just running migrations on start of the app but it would be nice to run the migrations as part of the deployment process.
So having the opportunity to run an additional step before starting the app would be awesome.
And support docker type is also really important
marked this post as
Hi guys. I wrote a whole blog article to try to explain
why release phase is crucial, in my opinion. If you agree with this, please upvote the feature. Otherwise, feel free to share your own opinion.
David: thanks! The post is helpful. We've also decided to build an equivalent of Heroku's release phase.
Anurag Goel: I'm really glad it helped to take the decision :) Thanks for reading.
marked this post as
Yes, that would be great. In the meantime https://community.render.com/t/release-command-for-db-migrations/247?u=peter_schroder
Peter Schröder: thanks for the pointer. Unfortunately that doesn’t work with docker-type services (they don’t have a buildCommand)