From dc1d63d044e66337f1cce699f2192a5e25ea206b Mon Sep 17 00:00:00 2001
From: Mr.Zhang <710666463@qq.com>
Date: 星期四, 14 九月 2023 10:30:18 +0800
Subject: [PATCH] 羚羊和生产环境隔离
---
 platform_web/.env.production    |   12 +----
 web_standard/.env.lingyang      |   16 ++++++++
 platform_web/.env.lingyang      |   17 ++++++++
 screen_standard/package.json    |    1 
 web_standard/.env.production    |    4 +-
 screen_standard/.env.production |    7 +--
 platform_web/package.json       |    1 
 screen_standard/.env.lingyang   |    5 ++
 8 files changed, 47 insertions(+), 16 deletions(-)
diff --git a/platform_web/.env.lingyang b/platform_web/.env.lingyang
new file mode 100644
index 0000000..14e332c
--- /dev/null
+++ b/platform_web/.env.lingyang
@@ -0,0 +1,17 @@
+# 鐢熶骇鐜閰嶇疆
+NODE_ENV = 'production'
+
+# 鍏抽棴DEBUG
+VUE_APP_DEBUG = 'off'
+
+# 璺敱鏂瑰紡
+VUE_APP_ROUTER_MODE = 'hash'
+
+# 椤圭洰涓婁笅鏂囪矾寰�
+VUE_APP_CONTEXT_PATH = '/admin'
+
+# 鎺ュ彛鍓嶇紑
+VUE_APP_API_PREFIX = '/doumeeplant/'
+
+#姝e紡鐜
+VITE_BASE_URL = 'https://127.0.0.1/doumeeplant'
diff --git a/platform_web/.env.production b/platform_web/.env.production
index d4ef849..e616577 100644
--- a/platform_web/.env.production
+++ b/platform_web/.env.production
@@ -9,15 +9,9 @@
 
 # 椤圭洰涓婁笅鏂囪矾寰�
 VUE_APP_CONTEXT_PATH = '/admin'
-
-
 # 鎺ュ彛鍓嶇紑
-VUE_APP_API_PREFIX = '/doumeeplant/'
-
-#娴嬭瘯鏈嶅姟鍣�
-#VUE_APP_BASE_URL = 'http://139.186.142.91:10012/'
-#婕旂ず鏈嶅姟鍣�
-# VUE_APP_BASE_URL = 'http://121.41.112.139:10012/'
+VUE_APP_API_PREFIX = '/api/'
 
 #姝e紡鐜
-VUE_APP_BASE_URL = 'https://www.mes.red/doumeeplant/'
+VUE_APP_BASE_URL = 'https://www.mes.red/api/'
+
diff --git a/platform_web/package.json b/platform_web/package.json
index c288459..dcd29b9 100644
--- a/platform_web/package.json
+++ b/platform_web/package.json
@@ -5,6 +5,7 @@
   "scripts": {
     "serve": "vue-cli-service serve",
     "build:pro": "vue-cli-service build",
+    "build:ly": "vue-cli-service build --mode lingyang",
     "build:dev": "vue-cli-service build --mode staging",
     "lint": "vue-cli-service lint",
     "fix": "eslint --ext .js,.vue src --fix"
diff --git a/screen_standard/.env.lingyang b/screen_standard/.env.lingyang
new file mode 100644
index 0000000..065edca
--- /dev/null
+++ b/screen_standard/.env.lingyang
@@ -0,0 +1,5 @@
+NODE_ENV = production
+VITE_NAME = '鐢熶骇鐜'
+VITE_BASE_CONTEXT = 'screen'
+VITE_BASE_PATH = '/doumeeplant/'
+VITE_BASE_URL = 'https://127.0.0.1/doumeeplant'
diff --git a/screen_standard/.env.production b/screen_standard/.env.production
index 522f53e..bf4afcd 100644
--- a/screen_standard/.env.production
+++ b/screen_standard/.env.production
@@ -1,8 +1,5 @@
 NODE_ENV = production
 VITE_NAME = '鐢熶骇鐜'
 VITE_BASE_CONTEXT = 'screen'
-VITE_BASE_PATH = '/doumeeplant'
-VITE_BASE_URL = 'https://www.mes.red/doumeeplant'
-
-VITE_BASE_URL = 'https://127.0.0.1/doumeeplant'
-# VITE_BASE_URL = 'https://lingyang.mes.show:1801/doumeeplant'
+VITE_BASE_PATH = '/api/'
+VITE_BASE_URL = 'https://www.mes.red/api'
diff --git a/screen_standard/package.json b/screen_standard/package.json
index b2560d6..268a0ac 100644
--- a/screen_standard/package.json
+++ b/screen_standard/package.json
@@ -5,6 +5,7 @@
   "scripts": {
     "serve": "vite --mode development",
     "build:pro": "vite build --mode production",
+    "build:ly": "vite build --mode lingyang",
     "build:dev": "vite build --mode staging",
     "preview": "vite preview"
   },
diff --git a/web_standard/.env.lingyang b/web_standard/.env.lingyang
new file mode 100644
index 0000000..51b6755
--- /dev/null
+++ b/web_standard/.env.lingyang
@@ -0,0 +1,16 @@
+# 鐢熶骇鐜閰嶇疆
+NODE_ENV = 'production'
+
+# 鍏抽棴DEBUG
+VUE_APP_DEBUG = 'off'
+
+# 璺敱鏂瑰紡
+VUE_APP_ROUTER_MODE = 'hash'
+
+# 椤圭洰涓婁笅鏂囪矾寰�
+VUE_APP_CONTEXT_PATH = '/web/'
+
+# 鎺ュ彛鍓嶇紑
+VUE_APP_API_PREFIX = '/doumeeplant/'
+
+VITE_BASE_URL = 'https://127.0.0.1/doumeeplant'
diff --git a/web_standard/.env.production b/web_standard/.env.production
index b575403..632e436 100644
--- a/web_standard/.env.production
+++ b/web_standard/.env.production
@@ -11,6 +11,6 @@
 VUE_APP_CONTEXT_PATH = '/web/'
 
 # 鎺ュ彛鍓嶇紑
-VUE_APP_API_PREFIX = '/doumeeplant'
+VUE_APP_API_PREFIX = '/api/'
 
-VUE_APP_BASE_URL = 'https://www.mes.red/doumeeplant/'
+VUE_APP_BASE_URL = 'https://www.mes.red/api/'
--
Gitblit v1.9.3