Creating A Staging Environment With EE

I’ve got my existing site on a shared hosting platform and I just set up a staging site on a VPS with EE so I could integrate all the content and test the setup. I’m now ready to set up the site at the actual domain I want to use but I’m not sure how to approach it. I’m wondering if there’s a way to maintain a staging environment (for good measure and future use) and create a duplicate of the staging site at the domain name I want. To give a better example I have staging.example.com and I want to copy it to example.com but maintain staging.example.com as a separate testing environment. Is there a way to do that with EE?

Thanks,

James.

Hello Jgiroux,

First sorry for the late reply, As of now easyengine doesn't have site clone functionality.

You can maintain a staging environment (for good measure and future use) and create a duplicate of the staging site at the domain name I want lets say example.com.

You can create a site called example.com by using following command ee site create example.com --wp

Once the site is created you need to import mysql dump and replace the example.com webroot with your staging sites. cp -av /var/www/staging.example.com/htdocs /var/www/example.com/

In this way you have a two domains 1. example.com - your live site 2. staging.example.com - your testing environments

There will be something like this in easyengine in future - https://github.com/rtCamp/easyengine/issues?milestone=8&state=open

Moved to https://github.com/rtCamp/easyengine/issues/535