A staging environment is a cloned copy of your production website with the same data and files.

However, it is hosted on a different subdomain and not accessible to the public.

Changes made to a staging site will not reflect on the production site until you explicitly push the staging to production.

 

 

Example: WordPress Toolkit Staging Environment

If you have installed your WordPress with Toolkit, you can easily create a WordPress staging site using the clone and staging features.

To start the process,

Log in to your cPanel.

Select WordPress Toolkit from the Domain section or from the upper left of your cPanel.

Expand the detailed view of the site for which you want to create the staging environment.

Click the Clone tool in the dashboard view.

 

WordPress Toolkit Clone Option

 

Select the staging site's subdomain and path.

This can be a pre-existing subdomain that you created earlier.

Or you can allow Toolkit to create a new one (e.g. staging.$example.com) for you.

All you need to do is to click the "Start" button to create the staging site and subdomain.

Once done, you can access the new site in the main WordPress Toolkit interface just like other sites you have.

It is recommended that you use the "Add Label " option to differentiate your WordPress installations.

The label can be based on environment (prod, dev, testing, staging).

For developers or agencies that build or manage WordPress for customers, the label can be the name of the customers who own each WordPress installation.

 

After testing and you are ready to push the changes to the production site, click the Copy Data tool in the staging site's WPT dashboard.

Select the production site from the Target drop-down menu and click "Start".

If anything goes awry, simply roll back the push from the restore point created by WordPress Toolkit before the action.

 

 

Example: Softaculous Staging Environment

If you have installed your WordPress installation with Softaculous, this is what you can do to create a staging environment:

Go to your cPanel with your credentials.

Scroll down to Software and click on the Softaculous icon or WordPress Manager.

Once the page loads, locate the Installations page.

Select the WordPress installation for which you want to create the staging environment.

Click on the Create Staging icon.

Fill in the Staging Installation details and click on the Create Staging button.

Once the staging environment is ready, test things out.

If everything in the staging environment is as you want it to be, back up the production installation.

Once you have ascertained that the backup is ready, click on the Push To Live icon (next to the corresponding Staging installation) to push the changes to your live website (again with just one click).

If anything goes wrong, simply restore the website using the backup.

آیا این پاسخ به شما کمک کرد؟ 0 کاربر این را مفید یافتند (0 نظرات)