From 1e13fa9e9fc5deeb39639935c31efa88eaadde61 Mon Sep 17 00:00:00 2001 From: g <> Date: Mon, 14 Sep 2020 17:55:44 +0300 Subject: [PATCH] configuration for new staging environment --- environments/staging/domain_db_fix.sql | 14 ++++++++++++++ environments/staging/wp-config-local.php | 18 ++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 environments/staging/domain_db_fix.sql create mode 100644 environments/staging/wp-config-local.php diff --git a/environments/staging/domain_db_fix.sql b/environments/staging/domain_db_fix.sql new file mode 100644 index 0000000..1e844a5 --- /dev/null +++ b/environments/staging/domain_db_fix.sql @@ -0,0 +1,14 @@ +######FOR TEST STAGING ENV + +update wp_options set option_value = "https://staging-law.carta.live" where option_id = 1 limit 1; +update wp_options set option_value = "https://staging-law.carta.live" where option_id = 2 limit 1; + +update wp_2_options set option_value = "https://staging-live.carta.live" where option_id = 1 limit 1; +update wp_2_options set option_value = "https://staging-law.carta.live/livecarta" where option_id = 2 limit 1; + +update wp_blogs set domain = "staging-law.carta.live" where blog_id = 1 limit 1; +update wp_blogs set domain = "staging-law.carta.live" where blog_id = 2 limit 1; + +update wp_domain_mapping set domain = "staging-live.carta.live" where blog_id = 2 limit 1; + +update wp_site set domain = "staging-law.carta.livem" where id =1 limit 1; diff --git a/environments/staging/wp-config-local.php b/environments/staging/wp-config-local.php new file mode 100644 index 0000000..0833067 --- /dev/null +++ b/environments/staging/wp-config-local.php @@ -0,0 +1,18 @@ +