Flywheel offers Staging on all current plans. Because of the complex nature and size requirements, Staging sites are not available on Legacy Tiny plans or sites that employ Multisite for WordPress®.1
Staging can be enabled from the Advanced tab of the site’s Flywheel dashboard. Staging sites are then accessible via a staging URL, which you can find under the new Staging tab in your site’s dashboard.
Because you don’t want search bots crawling your staging site or visitors seeing it while you’re still working on it, the staging site is protected by a Privacy Mode. The username and password can be found in the Staging tab, and they’ll be identical to the Privacy Mode username and password on the live site.
You’ll find the switch to enable and disable Staging under the Advanced tab of the site’s Flywheel dashboard. Toggle that switch on to get Staging set up for your site!
It may take a few minutes to get Staging ready, particularly if you have a large site. Once setup is complete, you’ll have a new Staging tab in your site’s Flywheel dashboard. Click that new tab to see all the info and options related to your new staging site.
When you connect via SFTP, you’ll see a new folder with the same name as your original site, only appended with “_staging”.
You can access your staging site at the URL listed in the Staging tab. You’ll still log in to WordPress exactly the same way, using the same credentials as on the live site.
Flywheel Cloud Platform
Legacy
Staging on Flywheel is a powerful and versatile tool, but it has so many capabilities that it can be difficult to know how best to use it, and what it should (and shouldn’t) be used for. Never fear! We’re happy to help.
The main consideration when using Staging boils down to one simple question: is the live site being edited or updated while the Staging site is in development, or will it be waiting unchanged until you’re ready to push your Staging changes to the live site?
The answer to that question will determine the best use of staging for you, because when you push Staging changes to the live site, you’ll have the option to overwrite the live database with the Staging database, or to leave the live database as-is and instead only push file changes from Staging.
Because those are the two options, here’s a guide to our recommendations for Staging:
If that all seems like a lot, just remember: Staging is designed to create a duplicate of the live site, then allow changes to be pushed back to the live site later. Staging can overwrite the live database or leave it alone and only push files, but it can’t merge changes to both the Staging and the live site’s database. So if you’re changing both at the same time, you risk losing some data.
Note
If there are any staging URLs in the code files of the staging site—including within CSS, JavaScript and/or PHP files—they will need to be manually updated! For best results with Staging, only use relative links that do not include the staging domain.
Staging sites also give you the option to choose what exactly gets rolled out to your live site.
All right, you’ve made your changes to staging, confirmed that everything’s running well and looking good, and you’re ready to go live with your shiny new edits. This is the exciting part, but it’s also a little tricky. Don’t worry, we’re here to help!
When you’re ready to push the changes from your Staging site to the live production site, start by clicking the “Move staging changes to live site” button in the Staging tab of the site’s Flywheel dashboard. Don’t fret – it won’t happen right away. First you’ll see this pop-up, giving you some options and asking for confirmation:
The “Copy staging database to production” checkbox is the most important (and maybe the most confusing), so we’ll go a little more in-depth on that here.
If you check this box, your live production site’s database will be completely overwritten with the staging site’s database. If you leave it unchecked, the database of the live production site will be left untouched and will retain all of its current data; only file changes will be copied from staging.
It can be a little tricky to understand the difference, so here’s a quick guide to what will happen in both cases:
Copy staging database to production? | Result: |
No (unchecked) | The live production site’s plugins and themes will be overwritten with the staging site’s plugins and themes; new and updated uploads on the staging site will be merged with the live production site’s uploads; plus code files (like CSS, JavaScript, etc.), images, media files like audio and video, PDFs, and any other user-uploaded content will be pushed to the live production site. |
Yes (checked) | All of the above still happens, plus the staging database will overwrite the live production site’s database. The database includes: all posts, pages, post and page content and revisions, navigation menus, widgets, WordPress users, comments, configuration options, store data such as products and orders, and WordPress options. |
There’s no middle ground between overwriting the live production site’s database with staging and leaving it untouched. There is no way to simply merge the two databases automatically using staging at this time. There are, however, a number of plugins and tools available for this process, including WordPress’s built-in import/export feature.
Now you’re up and running! Feel free to change and experiment, nothing you do in Staging will affect the live site until and unless you press the “Move staging changes to live site” button located on the Staging tab.
If you’ve pushed your changes to the Live site and are ready to switch off the Staging site, head back to the Advanced tab of the site’s dashboard to disable Staging.
Flywheel does not currently provide backups for staging sites. If you make changes on staging that you don’t want to lose, it’s best to save a backup of those locally using a backup plugin or by downloading the files via SFTP and the database via our database manager.
If you’ve gone a little too far, need to start over, or just need to update your Staging site’s content to reflect recent changes on the live production site, don’t worry – it’s easy!
Just head to the Staging tab of the site’s Flywheel dashboard and click the “Reset Staging” button. You’ll see the following pop-up, asking you to verify that you’d like to overwrite your staging site and confirm with your Flywheel password:
Once you confirm and click the “Reset staging site” button, you’ll have a fresh copy of your live production site available and ready to go in your staging site!
The total time to complete the refresh will be a byproduct of both how large your database is and the total file-size of your site. For most sites, the job should complete in a matter of minutes. While the staging environment is being reset, 476 Maintenance Mode will display in browser.
When we detect that a staging site has not been accessed for several days, we automatically dial down the staging site’s resources. Don’t worry, your staging site is still available for use, we just need to wake it up!
When traffic to staging is detected again, we automatically dial the resources back up, which can take a few moments.
If you have any questions our Happiness Engineers are here to help!
New to Flywheel? Start here, we've got all the information you'll need to get started and launch your first site!
View allLearn all about managing your Flywheel user account, Teams and integrations.
View allFlywheel hosting plans include a ton of great features. Learn about how to get a free SSL certificate, set up a staging site, and more!
View allAll the server and setting info you'll need to help you get the most out of your Flywheel hosting plan!
View allTips and tricks for managing your sites on Flywheel, including going live, troubleshooting issues and migrating or cloning sites.
View allLearn more about Growth Suite, our all-in-one solution for freelancers and agencies to grow more quickly and predictably.
Getting started with Growth Suite
Growth Suite: What are invoice statuses?
Growth Suite: What do client emails look like?
Learn more about Managed Plugin Updates, and how you can keep your sites up to date, and extra safe.
Restoring Plugin and Theme Management on Flywheel
Managed Plugin Updates: Database upgrades
Managed Plugin Updates: Pause plugin updates
We can help! Check out our Brand Resources page for links to all of our brand assets.
Brand Resources