Search Knowledge base
How to create and use the staging sites feature
Our staging environment allows you to copy & clone your live production site to a staging site, so you can make changes to it and test stuff out on without affecting your live site, and then you can easily push those changes back to your live production site.
A staging site is an independent clone of your live production site that can be easily created to test plugins, themes, and custom code. You can also copy the staging site to the live production site at any time after making changes. Each WordPress install at Pressidium can have its own staging site.
There are a few important things to remember when working with staging sites:
- There is no server side caching in place on staging sites
- Only the current year’s directories are copied (wp-uploads etc)
- There are some plugins that should not be used in the staging area
Some plugins that might have issues are generally those connected to third-party services and which validate their license through their domain. If this is your case, you might need to purchase two licenses to ensure similar functionality between your live and staging sites. You can also contact the author of your plugins for more information.
Creating a staging site
To create a staging environment, follow these steps:
- Log into the Client Portal.
- Go to websites from the left navigation menu
- Click on the WP Install you want to create a staging site for and go to the sites overview pane
- Click the “Staging Site” button
One clicked a new background job has is submitted and will show up in the background job notification icon.
Please note that the time of this process will depend on the size of your site. The larger the site the longer it will take to copy.
Once the copy is complete you will see a notification & badge on the Notification Icon (bell). You can now access your staging site by clicking on the “Visit Staging” button from the overview pane of your site (click on the overview tab if you are in another pane)
Pulling a fresh copy from Production
To make a fresh copy of your live production site, all you need to do is click the “Pull from Production” button, which will overwrite the currently existing staging area. Please be very careful when copying to staging as our Backup Points only cover the Live site, so make sure that you have either backed up locally any work you made on your staging site or have pushed it to production and have it backed-up there.
- The url structure for every staging area is the same and looks like this: http://sitename.dev.onpressidium.com
- You can access the staging area by simply logging into the admin for your live site, i.e.: http://sitename.dev.onpressidium.com/wp-admin
- Your extra users will be also copied and everyone can log into the staging site with the same credentials used in the live site.
Access the staging site’s database
You can access your staging site’s database just like you would your live site, via phpMyAdmin, all you need to do is click on the “phpMyAdmin Staging DB” button rather than the standard phpMyAdmin button which will give you access to the live production database. Be Careful, always make sure that you are active in your staging database environment and not on your live production site’s database, since if you get confused here you may accidentally make changes to your production site – which can cause mayhem and you may need to restore your site.
Pushing your staging site to your live Production site
If you’ve made changes to the staging site and now want to push those changes to your live site, you can do so very easily. Just click on the “Push Staging to Production” button in the overview pane of your site and whola your staging site has now gone live! (note the larger the site the longer it will take – you will be notified in the notifications area).
Also Be Careful that you are sure that your staging site is ready to go to production, if you have not tested everything, your production site may stop working properly and you may need to restore it from a previous backup point.
If you need any further assistance with our fantastic staging sites feature, just drop us a note and contact our support team which will be more than happy to help you out!