From d2a015475921e70c83d07604a689750780278f25 Mon Sep 17 00:00:00 2001 From: atsaruk Date: Fri, 4 Nov 2022 13:56:40 +0300 Subject: [PATCH] LAW-6132 --- environments/demo/domain_db_fix.sql | 14 ++------------ environments/demo/wp-config-local.php | 6 +++--- environments/dev/domain_db_fix.sql | 14 ++------------ environments/dev/wp-config-local.php | 6 +++--- environments/dev_amazon/domain_db_fix.sql | 14 ++------------ environments/dev_amazon/wp-config-local.php | 2 +- environments/docker/wp-config-local.php | 6 +++--- environments/local/domain_db_fix.sql | 14 ++------------ environments/local/wp-config-local.php | 7 ++++--- environments/new_prod/domain_db_fix.sql | 14 ++------------ environments/new_prod/http_domain_db_fix.sql | 14 ++------------ environments/new_prod/wp-config-local.php | 6 +++--- .../new_prod_tmp_domains/domain_db_fix.sql | 13 ++----------- .../domain_db_fix_casecarta.sql | 14 ++------------ .../new_prod_tmp_domains/http_domain_db_fix.sql | 14 ++------------ environments/prod/wp-config-local.php | 2 +- environments/qa/domain_db_fix.sql | 14 ++------------ environments/qa/wp-config-local.php | 2 +- environments/staging/domain_db_fix.sql | 14 ++------------ environments/staging/http_domain_db_fix.sql | 14 ++------------ htdocs/wp-config.php | 10 +--------- 21 files changed, 44 insertions(+), 170 deletions(-) mode change 100644 => 100755 htdocs/wp-config.php diff --git a/environments/demo/domain_db_fix.sql b/environments/demo/domain_db_fix.sql index 2fa412c..ad11d0d 100644 --- a/environments/demo/domain_db_fix.sql +++ b/environments/demo/domain_db_fix.sql @@ -1,14 +1,4 @@ ######FOR TEST DEMO ENV -update wp_options set option_value = "https://demo.lawcarta.com" where option_id = 1 limit 1; -update wp_options set option_value = "https://demo.lawcarta.com" where option_id = 2 limit 1; - -update wp_2_options set option_value = "https://demo.livecarta.com" where option_id = 1 limit 1; -update wp_2_options set option_value = "https://demo.lawcarta.com/livecarta" where option_id = 2 limit 1; - -update wp_blogs set domain = "demo.lawcarta.com" where blog_id = 1 limit 1; -update wp_blogs set domain = "demo.lawcarta.com" where blog_id = 2 limit 1; - -update wp_domain_mapping set domain = "demo.livecarta.com" where blog_id = 2 limit 1; - -update wp_site set domain = "demo.lawcarta.com" where id =1 limit 1; +update wp_options set option_value = "https://demo.livecarta.com" where option_id = 1 limit 1; +update wp_options set option_value = "https://demo.livecarta.com" where option_id = 2 limit 1; diff --git a/environments/demo/wp-config-local.php b/environments/demo/wp-config-local.php index 5876158..973c8d9 100644 --- a/environments/demo/wp-config-local.php +++ b/environments/demo/wp-config-local.php @@ -5,13 +5,13 @@ define( 'DB_USER', '@lcWpMySqlUsernameDemo@' ); define( 'DB_PASSWORD', '@lcWpMySqlPasswordDemo@' ); define( 'DB_HOST', '@lcWpMySqlHostDemo@' ); -define('DOMAIN_CURRENT_SITE', 'demo.lawcarta.com'); +define('DOMAIN_CURRENT_SITE', 'demo.livecarta.com'); define('LAWCARTA_SUBDOMAIN', 'app-demo'); define('LAWCARTA_PORT', ''); -define('LAWCARTA_WP_REST_API_REQUEST_URL', 'https://app-demo.lawcarta.com/v1/event/request'); -define('LAWCARTA_WP_REST_API_RESPONSE_URL', 'https://app-demo.lawcarta.com/v1/event/response'); +define('LAWCARTA_WP_REST_API_REQUEST_URL', 'https://app-demo.livecarta.com/v1/event/request'); +define('LAWCARTA_WP_REST_API_RESPONSE_URL', 'https://app-demo.livecarta.com/v1/event/response'); define('LAWCARTA_ENVIRONMENT_NAME', 'demo'); diff --git a/environments/dev/domain_db_fix.sql b/environments/dev/domain_db_fix.sql index 8a170d8..e6e34f1 100644 --- a/environments/dev/domain_db_fix.sql +++ b/environments/dev/domain_db_fix.sql @@ -1,14 +1,4 @@ ######FOR TEST DEV ENV -update wp_options set option_value = "https://dev.lawcarta.com" where option_id = 1 limit 1; -update wp_options set option_value = "https://dev.lawcarta.com" where option_id = 2 limit 1; - -update wp_2_options set option_value = "https://dev.livecarta.com" where option_id = 1 limit 1; -update wp_2_options set option_value = "https://dev.lawcarta.com/livecarta" where option_id = 2 limit 1; - -update wp_blogs set domain = "dev.lawcarta.com" where blog_id = 1 limit 1; -update wp_blogs set domain = "dev.lawcarta.com" where blog_id = 2 limit 1; - -update wp_domain_mapping set domain = "dev.livecarta.com" where blog_id = 2 limit 1; - -update wp_site set domain = "dev.lawcarta.com" where id =1 limit 1; +update wp_options set option_value = "https://dev.livecarta.com" where option_id = 1 limit 1; +update wp_options set option_value = "https://dev.livecarta.com" where option_id = 2 limit 1; diff --git a/environments/dev/wp-config-local.php b/environments/dev/wp-config-local.php index 647710c..c55faac 100644 --- a/environments/dev/wp-config-local.php +++ b/environments/dev/wp-config-local.php @@ -5,13 +5,13 @@ define( 'DB_USER', '@lcWpMySqlUsernameDev@' ); define( 'DB_PASSWORD', '@lcWpMySqlPasswordDev@' ); define( 'DB_HOST', '@lcWpMySqlHostDev@' ); -define('DOMAIN_CURRENT_SITE', 'dev.lawcarta.com'); +define('DOMAIN_CURRENT_SITE', 'dev.livecarta.com'); define('LAWCARTA_SUBDOMAIN', 'app-dev'); define('LAWCARTA_PORT', ''); -define('LAWCARTA_WP_REST_API_REQUEST_URL', 'https://app-dev.lawcarta.com/v1/event/request'); -define('LAWCARTA_WP_REST_API_RESPONSE_URL', 'https://app-dev.lawcarta.com/v1/event/response'); +define('LAWCARTA_WP_REST_API_REQUEST_URL', 'https://app-dev.livecarta.com/v1/event/request'); +define('LAWCARTA_WP_REST_API_RESPONSE_URL', 'https://app-dev.livecarta.com/v1/event/response'); define('LAWCARTA_ENVIRONMENT_NAME', 'dev'); diff --git a/environments/dev_amazon/domain_db_fix.sql b/environments/dev_amazon/domain_db_fix.sql index 7b18167..79bad0d 100644 --- a/environments/dev_amazon/domain_db_fix.sql +++ b/environments/dev_amazon/domain_db_fix.sql @@ -1,14 +1,4 @@ ######FOR TEST DEV ENV -update wp_options set option_value = "https://doc-dev.lawcarta.com" where option_id = 1 limit 1; -update wp_options set option_value = "https://doc-dev.lawcarta.com" where option_id = 2 limit 1; - -update wp_2_options set option_value = "https://doc-dev.livecarta.com" where option_id = 1 limit 1; -update wp_2_options set option_value = "https://doc-dev.lawcarta.com/livecarta" where option_id = 2 limit 1; - -update wp_blogs set domain = "doc-dev.lawcarta.com" where blog_id = 1 limit 1; -update wp_blogs set domain = "doc-dev.lawcarta.com" where blog_id = 2 limit 1; - -update wp_domain_mapping set domain = "doc-dev.livecarta.com" where blog_id = 2 limit 1; - -update wp_site set domain = "doc-dev.lawcarta.com" where id =1 limit 1; +update wp_options set option_value = "https://doc-dev.livecarta.com" where option_id = 1 limit 1; +update wp_options set option_value = "https://doc-dev.livecarta.com" where option_id = 2 limit 1; diff --git a/environments/dev_amazon/wp-config-local.php b/environments/dev_amazon/wp-config-local.php index a499a4a..6aa87a8 100644 --- a/environments/dev_amazon/wp-config-local.php +++ b/environments/dev_amazon/wp-config-local.php @@ -5,7 +5,7 @@ define( 'DB_USER', '@lcWpMySqlUsernameDev@' ); define( 'DB_PASSWORD', '@lcWpMySqlPasswordDev@' ); define( 'DB_HOST', '@lcWpMySqlHostDev@' ); -define('DOMAIN_CURRENT_SITE', 'doc-dev.lawcarta.com'); +define('DOMAIN_CURRENT_SITE', 'doc-dev.livecarta.com'); define('LAWCARTA_SUBDOMAIN', 'app-dev'); define('LAWCARTA_PORT', ''); diff --git a/environments/docker/wp-config-local.php b/environments/docker/wp-config-local.php index e9be7c8..743c7bd 100644 --- a/environments/docker/wp-config-local.php +++ b/environments/docker/wp-config-local.php @@ -5,7 +5,7 @@ define( 'DB_USER', 'dev' ); define( 'DB_PASSWORD', 'pass4dev' ); define( 'DB_HOST', '172.23.0.8' ); -define('DOMAIN_CURRENT_SITE', 'lawcarta.loc'); +define('DOMAIN_CURRENT_SITE', 'livecarta.loc'); define('LAWCARTA_SUBDOMAIN', 'app-dev1'); define('LAWCARTA_PORT', ''); @@ -14,5 +14,5 @@ define('LAWCARTA_ENVIRONMENT_NAME', 'local'); $_SERVER['HTTPS'] = 'On'; -define('LAWCARTA_WP_REST_API_REQUEST_URL', 'https://app-dev1.lawcarta.loc/v1/event/request'); -define('LAWCARTA_WP_REST_API_RESPONSE_URL', 'https://app-dev1.lawcarta.loc/v1/event/response'); +define('LAWCARTA_WP_REST_API_REQUEST_URL', 'https://app-dev1.livecarta.loc/v1/event/request'); +define('LAWCARTA_WP_REST_API_RESPONSE_URL', 'https://app-dev1.livecarta.loc/v1/event/response'); diff --git a/environments/local/domain_db_fix.sql b/environments/local/domain_db_fix.sql index ffd0f55..d722042 100644 --- a/environments/local/domain_db_fix.sql +++ b/environments/local/domain_db_fix.sql @@ -1,14 +1,4 @@ ######FOR TEST DEV ENV -update wp_options set option_value = "http://lawcarta.loc" where option_id = 1 limit 1; -update wp_options set option_value = "http://lawcarta.loc" where option_id = 2 limit 1; - -update wp_2_options set option_value = "http://livecarta.loc" where option_id = 1 limit 1; -update wp_2_options set option_value = "http://lawcarta.loc/livecarta" where option_id = 2 limit 1; - -update wp_blogs set domain = "lawcarta.loc" where blog_id = 1 limit 1; -update wp_blogs set domain = "lawcarta.loc" where blog_id = 2 limit 1; - -update wp_domain_mapping set domain = "livecarta.loc" where blog_id = 2 limit 1; - -update wp_site set domain = "lawcarta.loc" where id =1 limit 1; +update wp_options set option_value = "http://livecarta.loc" where option_id = 1 limit 1; +update wp_options set option_value = "http://livecarta.loc" where option_id = 2 limit 1; diff --git a/environments/local/wp-config-local.php b/environments/local/wp-config-local.php index 847de29..2dbd73e 100644 --- a/environments/local/wp-config-local.php +++ b/environments/local/wp-config-local.php @@ -5,7 +5,7 @@ define( 'DB_USER', 'root' ); define( 'DB_PASSWORD', 'TK5nQ9AdHzsF1m' ); define( 'DB_HOST', 'localhost' ); -define('DOMAIN_CURRENT_SITE', 'lawcarta.loc'); +define('DOMAIN_CURRENT_SITE', 'livecarta.loc'); define('LAWCARTA_SUBDOMAIN', 'app'); define('LAWCARTA_PORT', ''); @@ -14,8 +14,9 @@ define('LAWCARTA_ENVIRONMENT_NAME', 'local'); define('LC_ALLOW_COOKIE_POPUP', true); define('LC_GTM', 'GTM-KXTRR4Q'); +define( 'IMPORT_DEBUG', true); $_SERVER['HTTPS'] = 'On'; -define('LAWCARTA_WP_REST_API_REQUEST_URL', 'https://app-dev1.lawcarta.com/v1/event/request'); -define('LAWCARTA_WP_REST_API_RESPONSE_URL', 'https://app-dev1.lawcarta.com/v1/event/response'); \ No newline at end of file +define('LAWCARTA_WP_REST_API_REQUEST_URL', 'https://app-dev1.livecarta.com/v1/event/request'); +define('LAWCARTA_WP_REST_API_RESPONSE_URL', 'https://app-dev1.livecarta.com/v1/event/response'); \ No newline at end of file diff --git a/environments/new_prod/domain_db_fix.sql b/environments/new_prod/domain_db_fix.sql index 7a137c9..f0b83f6 100644 --- a/environments/new_prod/domain_db_fix.sql +++ b/environments/new_prod/domain_db_fix.sql @@ -1,14 +1,4 @@ ######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; +update wp_options set option_value = "https://livecarta.com" where option_id = 1 limit 1; +update wp_options set option_value = "https://livecarta.com" where option_id = 2 limit 1; diff --git a/environments/new_prod/http_domain_db_fix.sql b/environments/new_prod/http_domain_db_fix.sql index b069744..919ad6d 100644 --- a/environments/new_prod/http_domain_db_fix.sql +++ b/environments/new_prod/http_domain_db_fix.sql @@ -1,14 +1,4 @@ ######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; +update wp_options set option_value = "http://livecarta.com" where option_id = 1 limit 1; +update wp_options set option_value = "http://livecarta.com" where option_id = 2 limit 1; \ No newline at end of file diff --git a/environments/new_prod/wp-config-local.php b/environments/new_prod/wp-config-local.php index da1f8e5..c911a78 100644 --- a/environments/new_prod/wp-config-local.php +++ b/environments/new_prod/wp-config-local.php @@ -10,13 +10,13 @@ define( 'DB_HOST', '@lcWpMySqlHostProd@' ); #define( 'DB_PASSWORD', '@lcWpMySqlPasswordProd@' ); #define( 'DB_HOST', '@lcWpMySqlHostProd@' ); -define('DOMAIN_CURRENT_SITE', 'lawcarta.com'); +define('DOMAIN_CURRENT_SITE', 'livecarta.com'); define('LAWCARTA_SUBDOMAIN', 'app'); define('LAWCARTA_PORT', ''); -define('LAWCARTA_WP_REST_API_REQUEST_URL', 'https://app.lawcarta.com/v1/event/request'); -define('LAWCARTA_WP_REST_API_RESPONSE_URL', 'https://app.lawcarta.com/v1/event/response'); +define('LAWCARTA_WP_REST_API_REQUEST_URL', 'https://app.livecarta.com/v1/event/request'); +define('LAWCARTA_WP_REST_API_RESPONSE_URL', 'https://app.livecarta.com/v1/event/response'); define('LAWCARTA_ENVIRONMENT_NAME', 'prod'); diff --git a/environments/new_prod_tmp_domains/domain_db_fix.sql b/environments/new_prod_tmp_domains/domain_db_fix.sql index 73c23fa..50caecb 100644 --- a/environments/new_prod_tmp_domains/domain_db_fix.sql +++ b/environments/new_prod_tmp_domains/domain_db_fix.sql @@ -1,14 +1,5 @@ ######FOR TEST PROD ENV -update wp_options set option_value = "https://prod-law.carta.live" where option_id = 1 limit 1; -update wp_options set option_value = "https://prod-law.carta.live" where option_id = 2 limit 1; +update wp_options set option_value = "https://prod-live.carta.live" where option_id = 1 limit 1; +update wp_options set option_value = "https://prod-live.carta.live" where option_id = 2 limit 1; -update wp_2_options set option_value = "https://prod-live.carta.live" where option_id = 1 limit 1; -update wp_2_options set option_value = "https://prod-law.carta.live/livecarta" where option_id = 2 limit 1; - -update wp_blogs set domain = "prod-law.carta.live" where blog_id = 1 limit 1; -update wp_blogs set domain = "prod-law.carta.live" where blog_id = 2 limit 1; - -update wp_domain_mapping set domain = "prod-live.carta.live" where blog_id = 2 limit 1; - -update wp_site set domain = "prod-law.carta.live" where id =1 limit 1; diff --git a/environments/new_prod_tmp_domains/domain_db_fix_casecarta.sql b/environments/new_prod_tmp_domains/domain_db_fix_casecarta.sql index e7df02b..1ebda9c 100644 --- a/environments/new_prod_tmp_domains/domain_db_fix_casecarta.sql +++ b/environments/new_prod_tmp_domains/domain_db_fix_casecarta.sql @@ -1,14 +1,4 @@ ######FOR TEST PROD ENV -update wp_options set option_value = "https://law.casecarta.com" where option_id = 1 limit 1; -update wp_options set option_value = "https://law.casecarta.com" where option_id = 2 limit 1; - -update wp_2_options set option_value = "https://casecarta.com" where option_id = 1 limit 1; -update wp_2_options set option_value = "https://law.casecarta.com/livecarta" where option_id = 2 limit 1; - -update wp_blogs set domain = "law.casecarta.com" where blog_id = 1 limit 1; -update wp_blogs set domain = "law.casecarta.com" where blog_id = 2 limit 1; - -update wp_domain_mapping set domain = "casecarta.com" where blog_id = 2 limit 1; - -update wp_site set domain = "law.casecarta.com" where id =1 limit 1; +update wp_options set option_value = "https://casecarta.com" where option_id = 1 limit 1; +update wp_options set option_value = "https://casecarta.com" where option_id = 2 limit 1; diff --git a/environments/new_prod_tmp_domains/http_domain_db_fix.sql b/environments/new_prod_tmp_domains/http_domain_db_fix.sql index 7ddca33..0b2ac4e 100644 --- a/environments/new_prod_tmp_domains/http_domain_db_fix.sql +++ b/environments/new_prod_tmp_domains/http_domain_db_fix.sql @@ -1,14 +1,4 @@ ######FOR TEST PROD ENV -update wp_options set option_value = "http://prod-law.carta.live" where option_id = 1 limit 1; -update wp_options set option_value = "http://prod-law.carta.live" where option_id = 2 limit 1; - -update wp_2_options set option_value = "http://prod-live.carta.live" where option_id = 1 limit 1; -update wp_2_options set option_value = "http://prod-law.carta.live/livecarta" where option_id = 2 limit 1; - -update wp_blogs set domain = "prod-law.carta.live" where blog_id = 1 limit 1; -update wp_blogs set domain = "prod-law.carta.live" where blog_id = 2 limit 1; - -update wp_domain_mapping set domain = "prod-live.carta.live" where blog_id = 2 limit 1; - -update wp_site set domain = "prod-law.carta.live" where id =1 limit 1; +update wp_options set option_value = "http://prod-live.carta.live" where option_id = 1 limit 1; +update wp_options set option_value = "http://prod-live.carta.live" where option_id = 2 limit 1; diff --git a/environments/prod/wp-config-local.php b/environments/prod/wp-config-local.php index a713081..e8eac16 100644 --- a/environments/prod/wp-config-local.php +++ b/environments/prod/wp-config-local.php @@ -5,7 +5,7 @@ define( 'DB_USER', '@lcWpMySqlUsernameProd@' ); define( 'DB_PASSWORD', '@lcWpMySqlPasswordProd@' ); define( 'DB_HOST', '@lcWpMySqlHostProd@' ); -define('DOMAIN_CURRENT_SITE', 'lawcarta.com'); +define('DOMAIN_CURRENT_SITE', 'livecarta.com'); define('LAWCARTA_SUBDOMAIN', 'app'); define('LAWCARTA_PORT', ''); diff --git a/environments/qa/domain_db_fix.sql b/environments/qa/domain_db_fix.sql index 33e7551..c040eb7 100644 --- a/environments/qa/domain_db_fix.sql +++ b/environments/qa/domain_db_fix.sql @@ -1,14 +1,4 @@ ######FOR QA ENV -update wp_options set option_value = "https://qa.lawcarta.net" where option_id = 1 limit 1; -update wp_options set option_value = "https://qa.lawcarta.net" where option_id = 2 limit 1; - -update wp_2_options set option_value = "https://qa.livecarta.com" where option_id = 1 limit 1; -update wp_2_options set option_value = "https://qa.lawcarta.net/livecarta" where option_id = 2 limit 1; - -update wp_blogs set domain = "qa.lawcarta.net" where blog_id = 1 limit 1; -update wp_blogs set domain = "qa.lawcarta.net" where blog_id = 2 limit 1; - -update wp_domain_mapping set domain = "qa.livecarta.com" where blog_id = 2 limit 1; - -update wp_site set domain = "qa.lawcarta.net" where id =1 limit 1; \ No newline at end of file +update wp_options set option_value = "https://qa.livecarta.com" where option_id = 1 limit 1; +update wp_options set option_value = "https://qa.livecarta.com" where option_id = 2 limit 1; \ No newline at end of file diff --git a/environments/qa/wp-config-local.php b/environments/qa/wp-config-local.php index d28c20e..6339fa7 100644 --- a/environments/qa/wp-config-local.php +++ b/environments/qa/wp-config-local.php @@ -5,7 +5,7 @@ define( 'DB_USER', '@lcWpMySqlUsernameQA@' ); define( 'DB_PASSWORD', '@lcWpMySqlPasswordQA@' ); define( 'DB_HOST', '@lcWpMySqlHostQA@' ); -define('DOMAIN_CURRENT_SITE', 'qa.lawcarta.net'); +define('DOMAIN_CURRENT_SITE', 'qa.livecarta.com'); define('LAWCARTA_SUBDOMAIN', 'app-qa'); define('LAWCARTA_PORT', ''); diff --git a/environments/staging/domain_db_fix.sql b/environments/staging/domain_db_fix.sql index 1e844a5..c18ed7a 100644 --- a/environments/staging/domain_db_fix.sql +++ b/environments/staging/domain_db_fix.sql @@ -1,14 +1,4 @@ ######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; +update wp_options set option_value = "https://staging-live.carta.live" where option_id = 1 limit 1; +update wp_options set option_value = "https://staging-live.carta.live" where option_id = 2 limit 1; \ No newline at end of file diff --git a/environments/staging/http_domain_db_fix.sql b/environments/staging/http_domain_db_fix.sql index 5e2a6c7..15499ae 100644 --- a/environments/staging/http_domain_db_fix.sql +++ b/environments/staging/http_domain_db_fix.sql @@ -1,14 +1,4 @@ ######FOR TEST STAGING ENV -update wp_options set option_value = "http://staging-law.carta.live" where option_id = 1 limit 1; -update wp_options set option_value = "http://staging-law.carta.live" where option_id = 2 limit 1; - -update wp_2_options set option_value = "http://staging-live.carta.live" where option_id = 1 limit 1; -update wp_2_options set option_value = "http://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; +update wp_options set option_value = "http://staging-live.carta.live" where option_id = 1 limit 1; +update wp_options set option_value = "http://staging-live.carta.live" where option_id = 2 limit 1; diff --git a/htdocs/wp-config.php b/htdocs/wp-config.php old mode 100644 new mode 100755 index 287c5a5..c604419 --- a/htdocs/wp-config.php +++ b/htdocs/wp-config.php @@ -39,15 +39,7 @@ if ( file_exists( dirname( __FILE__ ) . '/wp-config-local.php' ) ) { define('DB_CHARSET', 'utf8'); define('DB_COLLATE', ''); - -/** Multisite */ -define('WP_ALLOW_MULTISITE', true); -define('MULTISITE', true); -define('SUBDOMAIN_INSTALL', false); -define('PATH_CURRENT_SITE', '/'); -define('SITE_ID_CURRENT_SITE', 1); -define('BLOG_ID_CURRENT_SITE', 1); -define('SUNRISE', 'on'); +define('FS_METHOD', 'direct'); /** * Authentication Unique Keys and Salts.