Posted by obrienmd on August 14, 2010 at 4:14am
We have 2 Aegir servers, one for development work and one for production work. Currently the transition from a dev site over to the production server is quite cumbersome. First, we rsync the updated codebase over, then we copy the database over via mysqldump, then we import the codebase as a platform, which imports the site.
Is there a better way to do this? Something automated? We want to keep the two environments completely separate from a mgmt UI (Aegir UI) perspective, but tight ssh/rsync/mysql integration for some wonderful drush command / script would be just fine. Am I missing something really simple?
Thanks in advance!
Comments
Drush rsync/sql-sync
I don't see the need for keeping the 2 environments separate in aegir, but it is your call.
You could look at the rsync and sql-sync drush commands. This won't add the site to the other aegir instance, you'd need some bash magic to do that for you first, then once provisioned do the sync.
provision-deploy
The following has been tested on 0.4-alpha8
If you do not have a destination platform ready look into drush make (drupal.org/project/drush_make).
Perform a backup task of the site on the development server. Then move the .gz file to the production server.
Execute the following on the production server, modified to your installation.
$ drush --root='/path/to/destination_platform' provision-deploy 'example.com' '/path/to/backups/example.com-20100429.085003.tar.gz' --backend
Following this command verify the destination platform in the aegir frontend which will then import the site.