From fbf81ea9fefe4537fb96855f910a939b9e60bdbe Mon Sep 17 00:00:00 2001 From: Gregory Pradun Date: Wed, 24 Mar 2021 08:11:05 +0300 Subject: [PATCH] new prod config update --- environments/new_prod/domain_db_fix.sql | 14 +++++++++ environments/new_prod/http_domain_db_fix.sql | 14 +++++++++ environments/new_prod/wp-config-local.php | 30 +++++++++++++++++++ .../domain_db_fix_casecarta.sql | 14 +++++++++ .../new_prod_tmp_domains/wp-config-local.php | 13 +++++--- 5 files changed, 81 insertions(+), 4 deletions(-) create mode 100644 environments/new_prod/domain_db_fix.sql create mode 100644 environments/new_prod/http_domain_db_fix.sql create mode 100644 environments/new_prod/wp-config-local.php create mode 100644 environments/new_prod_tmp_domains/domain_db_fix_casecarta.sql diff --git a/environments/new_prod/domain_db_fix.sql b/environments/new_prod/domain_db_fix.sql new file mode 100644 index 0000000..7a137c9 --- /dev/null +++ b/environments/new_prod/domain_db_fix.sql @@ -0,0 +1,14 @@ +######FOR TEST PROD ENV + +update wp_options set option_value = "https://lawcarta.com" where option_id = 1 limit 1; +update wp_options set option_value = "https://lawcarta.com" where option_id = 2 limit 1; + +update wp_2_options set option_value = "https://livecarta.com" where option_id = 1 limit 1; +update wp_2_options set option_value = "https://lawcarta.com/livecarta" where option_id = 2 limit 1; + +update wp_blogs set domain = "lawcarta.com" where blog_id = 1 limit 1; +update wp_blogs set domain = "lawcarta.com" where blog_id = 2 limit 1; + +update wp_domain_mapping set domain = "livecarta.com" where blog_id = 2 limit 1; + +update wp_site set domain = "lawcarta.com" where id =1 limit 1; diff --git a/environments/new_prod/http_domain_db_fix.sql b/environments/new_prod/http_domain_db_fix.sql new file mode 100644 index 0000000..b069744 --- /dev/null +++ b/environments/new_prod/http_domain_db_fix.sql @@ -0,0 +1,14 @@ +######FOR TEST PROD ENV + +update wp_options set option_value = "http://lawcarta.com" where option_id = 1 limit 1; +update wp_options set option_value = "http://lawcarta.com" where option_id = 2 limit 1; + +update wp_2_options set option_value = "http://livecarta.com" where option_id = 1 limit 1; +update wp_2_options set option_value = "http://lawcarta.com/livecarta" where option_id = 2 limit 1; + +update wp_blogs set domain = "lawcarta.com" where blog_id = 1 limit 1; +update wp_blogs set domain = "lawcarta.com" where blog_id = 2 limit 1; + +update wp_domain_mapping set domain = "livecarta.com" where blog_id = 2 limit 1; + +update wp_site set domain = "lawcarta.com" where id =1 limit 1; diff --git a/environments/new_prod/wp-config-local.php b/environments/new_prod/wp-config-local.php new file mode 100644 index 0000000..2f45cc0 --- /dev/null +++ b/environments/new_prod/wp-config-local.php @@ -0,0 +1,30 @@ +