From 27b15089bc6d322e26707f372c38295d2e623ac6 Mon Sep 17 00:00:00 2001
From: g <>
Date: Wed, 29 Jan 2020 12:27:00 +0300
Subject: [PATCH] LAW-3116 Setup new DEMO environment
---
.gitignore | 2 ++
build/build.xml | 6 +++++-
environments/demo/domain_db_fix.sql | 14 ++++++++++++++
environments/demo/wp-config-local.php | 16 ++++++++++++++++
4 files changed, 37 insertions(+), 1 deletion(-)
create mode 100644 environments/demo/domain_db_fix.sql
create mode 100644 environments/demo/wp-config-local.php
diff --git a/.gitignore b/.gitignore
index 067cefc..5a76c5e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
diff --git a/build/build.xml b/build/build.xml
index e229afa..5f6446b 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -14,6 +14,11 @@
+
+
+
+
+
@@ -28,7 +33,6 @@
-
diff --git a/environments/demo/domain_db_fix.sql b/environments/demo/domain_db_fix.sql
new file mode 100644
index 0000000..2fa412c
--- /dev/null
+++ b/environments/demo/domain_db_fix.sql
@@ -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;
diff --git a/environments/demo/wp-config-local.php b/environments/demo/wp-config-local.php
new file mode 100644
index 0000000..727c479
--- /dev/null
+++ b/environments/demo/wp-config-local.php
@@ -0,0 +1,16 @@
+