new prod config update

This commit is contained in:
Gregory Pradun
2021-03-24 08:11:05 +03:00
parent c77e877074
commit fbf81ea9fe
5 changed files with 81 additions and 4 deletions

View 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;

View 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;

View 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@' );

View File

@@ -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;

View File

@@ -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');