Good point Richard, if we have to handle it ourselves I think it deserves a little mention in the docs.
I assume that most people are use to capistrano which had a "cap deploy:migrations" command that would run the migrations before symlinking the new code. (Although I never personally tested it.) Maybe heroku needs needs a similar command that would run the migrations before updating the code? On Aug 12, 3:22 pm, "Ricardo Chimal, Jr." <rica...@heroku.com> wrote: > This is going to be a problem wherever you deploy your application > to. And what "happens" during that gap is really up to you. > > Once the push completes the old version of your codebase is no longer > running. If the migration changes the database schema radically odds > are you're going to see a lot of broken pages because presumably you > have updated your code for those changes. If the migration does > something minor, then you probably won't see a lot of breaking. The > point being that handling this is left to you as the developer to > handle. > > One option is to have a maintenance flag in your database or config > var that you can toggle to display a maintenance page. This is > probably the easiest to do and could be used for a large set of use > cases. > > Another option would be to have code that can work around your schema > changes, this is probably the most difficult for most to implement but > it is an option. > > -- > Ricardo > > On Aug 10, 5:40 am, Chap <c...@chap.otherinbox.com> wrote: > > > > > Between the push to heroku (which will automatically launch the app) > > and heroku rake db:migrate what happens? > > > I know it's only a few seconds, but potentially the site would be > > broke right? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/heroku?hl=en -~----------~----~----~----~------~----~------~--~---