This commit is contained in:
atsaruk
2022-11-04 13:56:40 +03:00
parent 28e8c2d325
commit d2a0154759
21 changed files with 44 additions and 170 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

10
htdocs/wp-config.php Normal file → Executable file
View File

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