Staging Environments
Create isolated staging copies and push changes to production safely.
Staging Environments
Staging environments let you test changes — theme updates, plugin installations, database migrations — on an exact copy of your production site before pushing them live. GHP Cloud makes creating and managing staging sites straightforward.
How staging works
When you create a staging environment, GHP Cloud:
1. Clones your site's files to a new directory on the same server
2. Creates a new database and imports a copy of your production database
3. Provisions a new Nginx vhost on a subdomain (e.g., staging.example.com)
4. Issues an SSL certificate for the staging subdomain
5. Runs WordPress search-and-replace to update all URLs in the database
The staging site is completely isolated — changes to files, the database, or configuration on staging have no effect on production until you explicitly push them.
Creating a staging environment
1. Open your site in the GHP Cloud dashboard
2. Click the Staging tab
3. Click Create Staging Environment
4. Choose a staging subdomain (default: staging.yourdomain.com)
5. Click Create
The cloning process takes 1–3 minutes depending on database size. You will receive a notification when the staging site is ready.
Working on staging
You can install plugins, update themes, run database operations, and make any changes on the staging site without worrying about breaking production. The staging site has its own WordPress admin at staging.yourdomain.com/wp-admin.
GHP Cloud does not automatically sync production changes to staging. If you need to refresh staging with the latest production data, click Sync from Production to overwrite the staging database and files with a fresh copy from live.
Pushing staging to production
When you are satisfied with the changes on staging, click Push to Production. GHP Cloud will:
1. Put your production site into maintenance mode briefly
2. Sync the staging files to production, excluding wp-config.php
3. Import the staging database to production
4. Run search-and-replace to restore production URLs
5. Flush all caches
6. Remove maintenance mode
The push takes 2–5 minutes. Take a manual backup of production before pushing — this operation overwrites production files and imports over the production database, and GHP does not currently snapshot the site for you beforehand.
Limitations
- Staging is provisioned on the same server as production. If you need a completely separate server for staging, create a new site manually.
- File changes made directly via SSH on staging are reflected in pushes, but changes made via FTP outside of GHP Cloud's tracking may be missed. Use the integrated File Manager or SFTP for best results.
Was this article helpful?