I've been using staging sites for years. So I'm not asking about the necessary difference to setup a working staging site such as search replacing URLs, dev version control branches, changing table prefixes etc.
I'm asking for differences which improve security, workflow or quality of life. Differences in options or
wp-config.php established upon initial environment creation or when transferring between different environments. Here's some examples I currently establish:
blog_publicdb option - Allow search engine crawlers in live, block search engine crawlers in staging.
- LiteSpeed Cache plugin (or equivalent) - Activate cache in live, deactivate cache in staging.
JETPACK_DEV_DEBUG- Set to false in live, set true in staging.
WP_DEBUGin wp-config.php - Set to false in live, set true in staging (Actually I don't do this as my staging sites are publicly accessible but it's a plausible example)
DISALLOW_FILE_MODSin wp-config.php - Set to true in live, set false in staging.
AUTOMATIC_UPDATER_DISABLED- Set to true in live, set false in staging.
Things I intend to setup but haven't yet:
- WooCommerce payment gateways - Enable test mode in staging, disable in live.
- WooCommerce test store message - Activate WooCommerce store notice on staging, deactivate on live.
Got any more? Along with core I'm looking for differences that oil the gears of popular plugins such as WooCommerce, Wordfence, Yoast SEO, Jetpack etc.
I tried to research this topic but the search results are drowned out by the plethora of boilerplate staging site setup tutorials. I tried posting on Reddit but that was also drowned out by subsequent posts. So keen to hear your ideas!