A staging environment lets you safely test changes to your project before making them available to visitors. It creates a separate copy of your live project where you can experiment with updates, troubleshoot issues, and test new features without affecting your live environment.
In this guide, you'll learn how to enable a staging environment, switch between environments, synchronize changes, push updates to your live project, and prevent your staging environment from appearing in search engine results.
What is a staging environment?
A staging environment is a copy of your live project that allows you to make and test changes before publishing them.
You can use staging to:
- Test plugin and theme updates before applying them to your live project.
- Experiment with design and content changes.
- Identify and resolve technical issues.
- Test new functionality without affecting visitors.
- Verify changes before deploying them to your live project.
When you enable staging, 10Web creates a separate copy of your live project with a -dev domain name.
Important:
The staging environment is available for projects hosted on 10Web with access to this hosting feature. If your project is hosted elsewhere, you'll need to migrate it to 10Web to use the staging environment.
How to enable a staging environment
To create a staging environment for your project:
- Log in to your 10Web account.
- Open the project for which you want to enable staging.
- In the left sidebar, expand Advanced by clicking Show.
- Under Hosting services, select Staging environment.
- Click Enable Now.
10Web will create a staging copy of your live project.
Once staging is enabled, your dashboard will turn dark blue when you're working in the staging environment, helping you distinguish it from your live environment.
Note:
Changes made in your staging environment do not automatically appear in your live project. You'll need to push your staging environment to live when you're ready to publish those changes.
How to switch between live and staging environments
Once staging is enabled, you can easily switch between the two environments from your 10Web dashboard.
- Open your project dashboard.
- Find the Environment dropdown at the top of the sidebar.
- Select Live environment or Staging environment.
When you switch to staging, the dashboard background changes to dark blue to indicate that you're working in the staging environment.
Quick tip:
Always check which environment you're working in before making significant changes. This helps prevent accidentally modifying your live project when you intended to work in staging.
How to sync your staging environment with live
Syncing staging with live replaces your current staging environment with a copy of your live project.
This is useful when:
- You've made changes to your live project and want staging to reflect the latest version.
- You want to discard unsuccessful experiments or changes made in staging.
- You need a fresh copy of your live project to test new updates.
Steps to sync staging with live
- Open your project dashboard.
- Click the environment dropdown at the top of the sidebar.
- Click the gear icon next to the staging environment. Alternatively, navigate to Advanced Hosting services Staging environment.
- On the Manage Environment page, click Sync Staging with Live.
- Enter the project name as requested in the confirmation window.
- Click Sync with Live to confirm.
10Web will copy your live project to the staging environment.
Important:
Syncing staging with live overwrites the current staging environment, including its files and database. Any changes made only in staging will be lost. Make sure you don't have unfinished work that you want to preserve before proceeding.
Note:
Depending on the size of your project, synchronization may take a few minutes.
How to push staging changes to live
Once you've finished testing your changes in staging, you can push them to your live project.
Pushing staging to live replaces your live environment with the version currently available in staging.
Steps to push staging to live
- Open your project dashboard.
- Click the environment dropdown at the top of the sidebar.
- Click the gear icon next to the staging environment. Alternatively, navigate to Advanced Hosting services Staging environment.
- On the Manage Environment page, click Push Staging to Live.
- Enter the project name as requested in the confirmation window.
- Click Push to Live to confirm.
10Web will begin copying your staging environment to your live project.
Important:
Pushing staging to live overwrites your live project's files and database with the corresponding data from staging. Changes made directly on the live project after the staging copy was created may be lost.
10Web automatically creates a backup of your current live project before replacing it with the staging version.
Quick tip:
Before pushing staging to live, test your project's important functionality, including forms, navigation, and other interactive elements. If your live project receives new orders, registrations, or other database updates, consider how these could be affected by replacing the live database.
How to prevent staging from being indexed by Google
Your staging environment is intended for testing and development, not for public search results.
To help prevent search engines such as Google from indexing your staging project, 10Web automatically enables WordPress's built-in search engine visibility setting for staging environments.
How to verify the search engine visibility setting
- Switch to your Staging environment.
- Open WP Admin.
- Navigate to Settings Reading.
- Find the Search engine visibility section.
- Make sure Discourage search engines from indexing this site is checked.
- If you make changes, click Save Changes.
Note:
This setting is enabled by default for staging environments created on 10Web. It asks search engines not to index the staging project, although search engines may choose whether to honor the request.
Quick tip:
Before pushing staging to live, verify that the live project's search engine visibility settings are configured correctly so your published project can be indexed by search engines.
Frequently asked questions
Will changes made in staging automatically appear on my live project?
No. Staging and live are separate environments. Changes made in staging will only appear on your live project after you explicitly push staging to live.
Can I push only the database from staging to live?
Currently, 10Web's staging management feature does not provide an option to push only the database from staging to live.
When you use Push Staging to Live, the staging environment's files and database are copied to your live project.
What is the difference between syncing staging with live and pushing staging to live?
The two actions copy your project in opposite directions:
- Sync Staging with Live: Copies your live project to staging, replacing the existing staging environment.
- Push Staging to Live: Copies your staging project to live, replacing the existing live environment.
Does 10Web create a backup before pushing staging to live?
Yes. 10Web automatically creates a backup of your live project before replacing it with the staging environment.
Can search engines index my staging environment?
10Web automatically enables the WordPress setting that discourages search engines from indexing staging environments. However, this setting is a request to search engines and does not guarantee that the staging project will never appear in search results.
Can I use staging if my project is hosted outside 10Web?
No. The staging environment feature is available for projects hosted on 10Web. To use it, you'll need to migrate your project to 10Web hosting.