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

Development and Live Sites, Migration Strategy

Development and Programming

Deluko Media's avatar
Deluko Media
34 posts
15 years ago
Deluko Media's avatar Deluko Media

Hello all,

I have yet to build a site with EE 2.0, but I’m looking forward to working with it.

I want to know the best way to build the site on a dev location and then migrate it to the live URL once it’s completed. What setup would allow me to migrate it the most easily? If I developed the site at realurl.com/development/ , could I effectively “go live” simply by moving the contents of that directory to the root and updating my URLs? I am really trying to avoid two database setups and two EE installations… this is a bit of a vague question but I guess the crux is, “how can I make launch super easy?”

       
Frans Cooijmans's avatar
Frans Cooijmans
36 posts
15 years ago
Frans Cooijmans's avatar Frans Cooijmans

what are you changing? only content or also the filebase?

       
Deluko Media's avatar
Deluko Media
34 posts
15 years ago
Deluko Media's avatar Deluko Media

dWise, I don’t know how to answer your question. My reason for bringing this topic up is that I always like to develop sites on my own domain, so that I have control over the work I produce and can wait until payment is made to launch the site and give the client control over the entire thing.

My ideal situation would be to build the site and add content on a dev server location & database, and then, when I wanted to launch, simply move the full directory to the client’s live environment, and keep the database the same? I’m just trying to streamline the process as best I can, as the development > production migration is going to be something I do very frequently (probably every project). Does this help clarify my question?

       
Focus Lab Dev Team's avatar
Focus Lab Dev Team
1,129 posts
15 years ago
Focus Lab Dev Team's avatar Focus Lab Dev Team

You could develop in a sub-directory as you’ve suggested. I did that once to a degree and it worked fine.

When we start new projects we build everything locally 100%. It doesn’t reside on the final domain/server until it’s signed off on and all that good business stuff. Once we’re ready it’s a matter of transferring all files and folders (and verifying folder permissions) and doing a full sql dump. It’s a pretty simple process for the initial launch migration.

Does that help?

       
Deluko Media's avatar
Deluko Media
34 posts
15 years ago
Deluko Media's avatar Deluko Media

Yes Erik, that’s very helpful, thanks.

I guess I’ve just been working on a few sites which have no really “private” information, and they are repeat clients who I trust… so I was just looking for the easiest way to set up the system… ideally to save myself the MySQL dump. In other words, I’d like to simply “turn on” the site instead of a full “migration.”

This info will absolutely be helpful for other clients. Thanks for your response.

       
Focus Lab Dev Team's avatar
Focus Lab Dev Team
1,129 posts
15 years ago
Focus Lab Dev Team's avatar Focus Lab Dev Team

Glad to help. 😊 I completely understand wanting the ability to flip a switch rather than a multi-step migration :p

       
Jeremy Bise's avatar
Jeremy Bise
77 posts
15 years ago
Jeremy Bise's avatar Jeremy Bise

If I can chime in with what we’ve recently started doing…

We’re using NSM Config Bootstrap so that EE knows which environment (development, staging, production) dynamically from the URL. That way we don’t have any real config file changes between various environments. The bootstrap handles it all.

http://www.ee-garage.com/nsm-config-bootstrap

Then, for the actual deployment to staging or production, we use Beanstalk. It’s version control at its heart (either Git or Subversion), but the paid plans also include a deployment tool which will let you set up different servers to deploy to. We usually only have staging and production. Once you’re ready to deploy, Beanstalk is smart and only deploys the changed portions of the site. So in this way, you can have your development and staging versions of the site miles ahead of production, and when you’re ready to send your changes to production, it’s just a few clicks to do so.

http://beanstalkapp.com/

This workflow is working really, really well for us!

       
Focus Lab Dev Team's avatar
Focus Lab Dev Team
1,129 posts
15 years ago
Focus Lab Dev Team's avatar Focus Lab Dev Team
Then, for the actual deployment to staging or production, we use Beanstalk. It’s version control at its heart (either Git or Subversion), but the paid plans also include a deployment tool which will let you set up different servers to deploy to. We usually only have staging and production. Once you’re ready to deploy, Beanstalk is smart and only deploys the changed portions of the site. So in this way, you can have your development and staging versions of the site miles ahead of production, and when you’re ready to send your changes to production, it’s just a few clicks to do so. http://beanstalkapp.com/ This workflow is working really, really well for us!

That’s exactly what we do. Great service! I’m playing a bit with beanstalk’s hooks now. I’m curious what you think, Jeremy.

http://erikreagan.tumblr.com/post/2362696342/ee-deployment-thoughts

       

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.