Copy an Environment Using Push or Pull
If you have made changes to an environment and now you want to copy those changes to another environment, you can use the “Push to” or “Pull from” action in the User Portal.
In this article, we will show you how to push or pull changes in any environment in any site in your WP Engine account.
Please note that if you are copying a multisite network, we recommend reading the Multisite Deployment Best Practices article first.
If you need to copy an older checkpoint, you can use the Copy Environment tool as described in this article or use the backup and restore functionality.
NOTE
To prevent any visual discrepancies, downtime or missed orders, we suggest that you enable a maintenance page on the source and destination environments before starting the copy process.
Maintenance mode can be enabled through a plugin, or by triggering the default WordPress® functionality.1
Prefer to watch a video?
Was this video helpful?
What are “Push to” and “Pull from” actions?
When you are ready to copy changes from one environment to another, you can use the “Push to” or “Pull from” action. Both of these actions work in the same way, so the only real difference is where you’re starting the copy process from.
“Push to” action
The “Push to” action allows you to push the contents of the currently selected environment to another environment.
For example, if you have been working on your website in the staging environment and now you are ready to publish everything to your live website, you can push staging to production.
“Pull from” action
The “Pull from” action allows you to pull the contents from another environment into the currently selected environment.
For example, if you want to add a new plugin, but you want to test it for compatibility before activating it on your live website, you can pull production to staging and then do all your testing there.
How to push or pull content between environments
- Select the environment you want to start the copy process from.
- On the Sites page, select the site you are working on.
- Select the correct environment at the top of the page.
- If you want to push content from this environment to another one, select the source environment.
- If you want to pull content from another environment into this one, select the destination environment.