Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku Migrate Database Changes

I've made changes to my app, including adding models and adding columns to a pre-existing model. I'm using rails 3.1 and I'm aware that I must precompile my assets before deploying. Once I run git push heroku master and heroku rake db:migrate should I expect any errors?

I'm trying keep downtime to a minimum because users be interacting with the site during deployment.

Update

Everything seems to be fine. Push & Rake DB did it.

like image 238
Dru Avatar asked Jun 22 '26 06:06

Dru


1 Answers

One thing you might want to look into is putting the app into maintenance mode while you're doing the update. Instead of hitting users with unpredictable results, you can minimize confusion by popping up a maintenance message. You can also customize it.

You can read about how here: http://devcenter.heroku.com/articles/maintenance-mode

like image 81
Jayson Lane Avatar answered Jun 25 '26 00:06

Jayson Lane



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!