Cloning the test system

If you wish to re-clone the test system from the production system you should do as follows: (remember to delete any old test-old.openvpms.org first - see below)

Login as admin
cd public_html
mv test.openvpms.org test-old.openvpms.org
mkdir test.openvpms.org
rsync -a --exclude '.git*' openvpms.org/* test.openvpms.org
[this will fail to copy some log files because of permission problems but these do not matter
and we are using rsync rather than cp so that we can exclude the git stuff]
cd ~/wwwtest/sites/default
cp ~/public_html/test-old.openvpms.org/public/sites/default/settings.php settings.php
drush sql-sync @live @test

What the above does is rename the test system to test-old, the copy the production system files to the new test system, and then ovewrite the new test systems settings.php from the old test system (which sets the required database name and site url).  Finally we copy the production database using the drush sql-sync command.

You now need to login to the test system set the Reroute Mail options.

 

 

When you are happy you can delete the old test system saved in test-old.openvpms.org using:

sudo rm -rf test-old.openvpms.org
Syndicate content