Difference between revisions of "Website Build Test Environment"

From CCCWiki
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
To build the test environment, follow these steps:
 
To build the test environment, follow these steps:
 
# Create a backup of the live site.
 
# Create a backup of the live site.
## Go to [http://www.christchurchchislehurst.org/new/administrator/index.php?option=com_akeeba Akeeba Backup Control Panel].
+
## Go to [https://www.christchurchchislehurst.org/administrator/index.php?option=com_akeeba Akeeba Backup Control Panel].
 
## Set the profile to ''Full backup without large files''.
 
## Set the profile to ''Full backup without large files''.
 
## Click ''Backup Now''.
 
## Click ''Backup Now''.
 
# Restore the test site.
 
# Restore the test site.
## Use an FTP client to move backup you want to restore from ''/backups'' to ''/web/test''.
+
## Use WinSCP to move backup you want to restore from ''/var/www/vhosts/s17637272.onlinehome-server.info/ccchislehurst.org/administrator/components/com_akeeba/backup'' to ''/var/www/vhosts/s17637272.onlinehome-server.info/test.ccchislehurst.org''.
## Go to [http://www.christchurchchislehurst.org/test/kickstart.php Akeeba Kickstart on the test site] and make sure that the back file is selected in ''ARCHIVE FILE''.
+
## Go to [https://test.christchurchchislehurst.org/ccc-kickstart.php Akeeba Kickstart on the test site] and make sure that the back file is selected in ''ARCHIVE FILE''.
 
## Use the defaults and click ''Start''.
 
## Use the defaults and click ''Start''.
 
## Wait until all the files have been extracted.
 
## Wait until all the files have been extracted.
## '''Enter ''mysql7.namesco.net'' as ''Database server host name'', ''cccjoomla'' as ''User name'', use the usual password and ''cccjoomla'' as ''Database name'', the click ''Next''.''' The database restore should only take a few seconds.
+
## '''Enter ''127.0.0.1'' as ''Database server host name'', ''cccwebtest'' as ''User name'', use the usual password and ''joomla_test'' as ''Database name'', the click ''Next''.''' The database restore should only take a few seconds.
## On the ''Site Info'' tab click ''Next''.
+
## Correct the paths by adding ''test.'' click ''Next''.
## Use an FTP client to delete the ''/web/test/installation'' directory.
+
## Click ''Remove Installation'' after the restoration is complete.
 
# Isolate the test site.
 
# Isolate the test site.
## Disable Google Analytics so that Google Analytics stats are not tainted by test site use.
+
## Disable email notifications
### Use an FTP client to open ''/web/test/templates/ccc/index.php''.
+
### Go to the [https://test.christchurchchislehurst.org/administrator/index.php?option=com_plugins Plug-in Manager of the test site].
### Remove the Google Analytics script around line 170 otherwise usage on the test site will be reported in Google Analytics.
 
## Disable article update notification emails so avoid spamming and confusing the team when making updates to the test ite.
 
### Go to the [http://www.christchurchchislehurst.org/test/administrator/index.php?option=com_plugins Plug-in Manager of the test site].
 
 
### Find and disable the ''Content - NotifyArticleSubmit'' plug-in.
 
### Find and disable the ''Content - NotifyArticleSubmit'' plug-in.
## Disable posting to Facebook so that new articles are not send automatically to the Facebook Page and/or Group/
+
## Disable CDN cache flushing (otherwise cache of production site is flushed causing slowness)
### Go to the [http://www.christchurchchislehurst.org/test/administrator/index.php?option=com_plugins&view=plugin&layout=edit&extension_id=10075 Autotweet Content plug-in].
+
### Go to the [https://test.christchurchchislehurst.org/administrator/index.php?option=com_plugins&view=plugin&layout=edit&extension_id=10175 Cache Cleaner plugin] and set CloudFlare to ''No'' in the ''3rd Party Cache'' section.
### Set ''Auto publish'' to ''No'' and save the settings.
+
### Click ''Save''.
 +
## Enable the development mode
 +
### Go to the [https://www.christchurchchislehurst.org/administrator/index.php?option=com_templates&view=style&layout=edit&id=17#general General tab of the Uber template manager].
 +
### Switch ''Development Mode'' to ''On'' and click ''Save''.

Latest revision as of 17:39, 6 February 2016

To build the test environment, follow these steps:

  1. Create a backup of the live site.
    1. Go to Akeeba Backup Control Panel.
    2. Set the profile to Full backup without large files.
    3. Click Backup Now.
  2. Restore the test site.
    1. Use WinSCP to move backup you want to restore from /var/www/vhosts/s17637272.onlinehome-server.info/ccchislehurst.org/administrator/components/com_akeeba/backup to /var/www/vhosts/s17637272.onlinehome-server.info/test.ccchislehurst.org.
    2. Go to Akeeba Kickstart on the test site and make sure that the back file is selected in ARCHIVE FILE.
    3. Use the defaults and click Start.
    4. Wait until all the files have been extracted.
    5. Enter 127.0.0.1 as Database server host name, cccwebtest as User name, use the usual password and joomla_test as Database name, the click Next. The database restore should only take a few seconds.
    6. Correct the paths by adding test. click Next.
    7. Click Remove Installation after the restoration is complete.
  3. Isolate the test site.
    1. Disable email notifications
      1. Go to the Plug-in Manager of the test site.
      2. Find and disable the Content - NotifyArticleSubmit plug-in.
    2. Disable CDN cache flushing (otherwise cache of production site is flushed causing slowness)
      1. Go to the Cache Cleaner plugin and set CloudFlare to No in the 3rd Party Cache section.
      2. Click Save.
    3. Enable the development mode
      1. Go to the General tab of the Uber template manager.
      2. Switch Development Mode to On and click Save.