forked from LiveCarta/LiveCartaWP
Merge pull request #3454 from gregory-p/wordpress
LAW-3116 Setup new DEMO environment
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -11,6 +11,8 @@ htdocs/wp-content/*
|
||||
!htdocs/wp-content/themes/
|
||||
!htdocs/wp-content/index.php
|
||||
!htdocs/wp-content/sunrise.php
|
||||
!htdocs/wp-content/uploads/
|
||||
!htdocs/wp-content/uploads/.gitkeep
|
||||
|
||||
htdocs/wp-content/mu-plugins/*
|
||||
!htdocs/wp-content/mu-plugins/domain_mapping.php
|
||||
|
||||
@@ -14,6 +14,11 @@
|
||||
<replace dir="../environments" token="@lcWpMySqlUsernameDev@" value="${lcWpMySqlUsernameDev}"/>
|
||||
<replace dir="../environments" token="@lcWpMySqlPasswordDev@" value="${lcWpMySqlPasswordDev}"/>
|
||||
|
||||
<replace dir="../environments" token="@lcWpMySqlHostDemo@" value="${lcWpMySqlHostDemo}"/>
|
||||
<replace dir="../environments" token="@lcWpMySqlDbnameDemo@" value="${lcWpMySqlDbnameDemo}"/>
|
||||
<replace dir="../environments" token="@lcWpMySqlUsernameDemo@" value="${lcWpMySqlUsernameDemo}"/>
|
||||
<replace dir="../environments" token="@lcWpMySqlPasswordDemo@" value="${lcWpMySqlPasswordDemo}"/>
|
||||
|
||||
<property name="replace.done" value="true"/>
|
||||
</target>
|
||||
|
||||
@@ -28,7 +33,6 @@
|
||||
<tarfileset dir="${basedir}/..">
|
||||
<include name="*/**" />
|
||||
<exclude name="build/**" />
|
||||
<exclude name="vendor/**" />
|
||||
</tarfileset>
|
||||
</tar>
|
||||
</target>
|
||||
|
||||
14
environments/demo/domain_db_fix.sql
Normal file
14
environments/demo/domain_db_fix.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
######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;
|
||||
16
environments/demo/wp-config-local.php
Normal file
16
environments/demo/wp-config-local.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
define( 'DB_NAME', '@lcWpMySqlDbnameDemo@' );
|
||||
define( 'DB_USER', '@lcWpMySqlUsernameDemo@' );
|
||||
define( 'DB_PASSWORD', '@lcWpMySqlPasswordDemo@' );
|
||||
define( 'DB_HOST', '@lcWpMySqlHostDemo@' );
|
||||
|
||||
define('DOMAIN_CURRENT_SITE', 'demo.lawcarta.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');
|
||||
|
||||
$_SERVER['HTTPS'] = 'On';
|
||||
Reference in New Issue
Block a user