We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Staging Idea

Development and Programming

blendimc's avatar
blendimc
150 posts
14 years ago
blendimc's avatar blendimc

So I have a crazy idea for db migration that I want to test out, but I’m curious if anyone can let me know your thoughts. Here goes.

  1. Set up a dev server and build the site using Git.
  2. Push the files to the server.
  3. Do a Mysql Dump and create the Database
  4. Verify settings, and you have a Launched site

This part is simple enough, but how about maintaining it. The question everybody has. Git makes moving files between Dev, Staging, and Live easy enough, but the DB is where it gets tricky. Here’s my thought.

  1. Use git to make changes.
  2. When you are ready, use git to push files Staging server.
  3. While on Dev server or Staging Server, have EE log every MySQL query that is a non-stats write query. Then when you are ready to go live, just push out the files with Git, and run this list of queries over the live database. Obviously, you would not be able to edit Channel Entry data in the Dev/Staging Server, but you usually don’t need to. As long as you only did structure changes in Dev/Staging and Data changes in the live server (which is pretty normal), I think this could work.

This would save the long, slow, and error prone process of trying to recreate all the fields you created in the dev server for the new feature you want to add to the live site.

What are your thoughts? Where do you see problems?

       
Wouter Vervloet's avatar
Wouter Vervloet
758 posts
14 years ago
Wouter Vervloet's avatar Wouter Vervloet

I believe Jamie Rumbelow was working on doing this, he even has a name for it: Sparrow and judging by this tweet it is coming soon™.

Though he is a bit busy at the moment, his addons are toop notch and when (if) it comes out, I’ll definitely will be giving it a try…

Regards, Wouter

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.