LAW-3116 Setup new DEMO environment

This commit is contained in:
g
2020-01-29 12:27:00 +03:00
parent 127322e526
commit 27b15089bc
4 changed files with 37 additions and 1 deletions

2
.gitignore vendored
View File

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

View File

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

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

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