How do I use 20i’s WordPress staging environment?
Sites on our WordPress-optimised platform have access to a full staging environment. Staging allows you to make a clone of a live WordPress site on a staging server in moments. You can then make changes without affecting the live site.
To make use of the WordPress staging environment, you’ll need to make sure the site is hosted on our optimised WordPress platform.
To use the staging environment:
- Login to My20i, head to Manage Hosting and select Manage on the WordPress package you want to use staging for.
- In the WordPress Tools section, select Staging.
- Select Create Staging Site.
- Your current site will then be cloned onto a staging subdomain, i.e. staging.yourdomain.com. This will take a few minutes to complete.
- Once your site has cloned onto the staging subdomain, you will now have access to edit the staging site without having an impact on the live site.
- To view the staging site, select Visit Staging.
To edit the staging site files, you can use either the File Manager or FTP. A newly created staging_html directory will have been created, this is where the cloned files are stored and where you need to go to edit any site files.You can edit the site as normal through WordPress Admin.
To edit the database, you can head to MySQL Databases and you will see a newly created SCSTAGING database which you can simply login to via phpMyAdmin. The site and home URL for the WordPress site will be prefixed with the staging. subdomain.
To push your staging site changes to your live site:
- Head to the WordPress Staging icon.
- Select the checkbox next to 'I can confirm this will overwrite my existing, live website data'.
- Select Clone into live. This will take a few minutes to complete.
Once completed, any changes you’ve made to the staging site will have been replicated onto the live version of your site.