diff --git a/environments/staging/http_domain_db_fix.sql b/environments/staging/http_domain_db_fix.sql new file mode 100644 index 0000000..5e2a6c7 --- /dev/null +++ b/environments/staging/http_domain_db_fix.sql @@ -0,0 +1,14 @@ +######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; diff --git a/environments/staging/wp-config-local.php b/environments/staging/wp-config-local.php index d7a381c..e65b749 100644 --- a/environments/staging/wp-config-local.php +++ b/environments/staging/wp-config-local.php @@ -15,7 +15,7 @@ define('LAWCARTA_WP_REST_API_RESPONSE_URL', 'https://app-staging-law.carta.live/ define('LAWCARTA_ENVIRONMENT_NAME', 'staging'); -$_SERVER['HTTPS'] = 'On'; +//$_SERVER['HTTPS'] = 'On'; //S3 uploads settings define( 'S3_UPLOADS_BUCKET', 'law-carta-staging-wp' );