What to do with database in dev/production phases of a website?

Posted by TheLQ on Pro Webmasters See other posts from Pro Webmasters or by TheLQ
Published on 2011-01-15T03:21:13Z Indexed on 2011/01/15 3:59 UTC
Read the original article Hit count: 307

For a while now I've been keeping a website I'm developing in the standard dev/production phases. Its been pretty simple: Mercurial repo for dev, repo for production. Do work in dev, get approved, push to production.

But now I'm trying to apply this process to a new website that has a database and am struggling on how to figure out a development strategy. What I didn't mention above is that I do all my work on my own repo, push it to dev, then later push it to production, so its 3 different servers. So how do I manage my database?

The obvious solution of mysqldump every commit isn't going to happen, and a dump at the end of the day isn't all that helpful when you want to undo later one change that happened in the middle of the day.

What is the best way to accomplish this?

© Pro Webmasters or respective owner

Related posts about web-development

Related posts about database