forked from LiveCarta/LiveCartaWP
Merge pull request #4823 from gregory-p/wordpress
new prod config update
This commit is contained in:
14
environments/new_prod/domain_db_fix.sql
Normal file
14
environments/new_prod/domain_db_fix.sql
Normal file
@@ -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;
|
||||||
14
environments/new_prod/http_domain_db_fix.sql
Normal file
14
environments/new_prod/http_domain_db_fix.sql
Normal file
@@ -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;
|
||||||
30
environments/new_prod/wp-config-local.php
Normal file
30
environments/new_prod/wp-config-local.php
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
define( 'DB_NAME', '@lcWpMySqlDbnameProd@' );
|
||||||
|
define( 'DB_USER', '@lcWpMySqlUsernameProd@' );
|
||||||
|
define( 'DB_PASSWORD', '@lcWpMySqlPasswordProd@' );
|
||||||
|
define( 'DB_HOST', '@lcWpMySqlHostProd@' );
|
||||||
|
|
||||||
|
#define( 'DB_NAME', '@lcWpMySqlDbnameProd@' );
|
||||||
|
#define( 'DB_USER', '@lcWpMySqlUsernameProd@' );
|
||||||
|
#define( 'DB_PASSWORD', '@lcWpMySqlPasswordProd@' );
|
||||||
|
#define( 'DB_HOST', '@lcWpMySqlHostProd@' );
|
||||||
|
|
||||||
|
define('DOMAIN_CURRENT_SITE', 'lawcarta.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_ENVIRONMENT_NAME', 'prod');
|
||||||
|
|
||||||
|
$_SERVER['HTTPS'] = 'On';
|
||||||
|
|
||||||
|
//S3 uploads settings
|
||||||
|
define( 'S3_UPLOADS_BUCKET', 'law-carta-prod-wp' );
|
||||||
|
define( 'S3_UPLOADS_REGION', 'us-west-1' );
|
||||||
|
|
||||||
|
define( 'S3_UPLOADS_KEY', '@lcAwsKey@' );
|
||||||
|
define( 'S3_UPLOADS_SECRET', '@lcAwsSecretKey@' );
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
######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;
|
||||||
@@ -5,13 +5,18 @@ define( 'DB_USER', '@lcWpMySqlUsernameProd@' );
|
|||||||
define( 'DB_PASSWORD', '@lcWpMySqlPasswordProd@' );
|
define( 'DB_PASSWORD', '@lcWpMySqlPasswordProd@' );
|
||||||
define( 'DB_HOST', '@lcWpMySqlHostProd@' );
|
define( 'DB_HOST', '@lcWpMySqlHostProd@' );
|
||||||
|
|
||||||
define('DOMAIN_CURRENT_SITE', 'lawcarta.com');
|
#define( 'DB_NAME', '@lcWpMySqlDbnameProd@' );
|
||||||
|
#define( 'DB_USER', '@lcWpMySqlUsernameProd@' );
|
||||||
|
#define( 'DB_PASSWORD', '@lcWpMySqlPasswordProd@' );
|
||||||
|
#define( 'DB_HOST', '@lcWpMySqlHostProd@' );
|
||||||
|
|
||||||
define('LAWCARTA_SUBDOMAIN', 'app');
|
define('DOMAIN_CURRENT_SITE', 'law.casecarta.com');
|
||||||
|
|
||||||
|
define('LAWCARTA_SUBDOMAIN', 'app-law');
|
||||||
define('LAWCARTA_PORT', '');
|
define('LAWCARTA_PORT', '');
|
||||||
|
|
||||||
define('LAWCARTA_WP_REST_API_REQUEST_URL', 'https://app.lawcarta.com/v1/event/request');
|
define('LAWCARTA_WP_REST_API_REQUEST_URL', 'https://app-law.casecarta.com/v1/event/request');
|
||||||
define('LAWCARTA_WP_REST_API_RESPONSE_URL', 'https://app.lawcarta.com/v1/event/response');
|
define('LAWCARTA_WP_REST_API_RESPONSE_URL', 'https://app-law.casecarta.com/v1/event/response');
|
||||||
|
|
||||||
define('LAWCARTA_ENVIRONMENT_NAME', 'prod');
|
define('LAWCARTA_ENVIRONMENT_NAME', 'prod');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user