From fcc3f3598ca252b329a5f4b0d10dfbc8601d7a59 Mon Sep 17 00:00:00 2001 From: liuchen864 <23082234@qq.com> Date: Sun, 14 Apr 2024 08:35:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=E6=B5=B7=E6=8B=89?= =?UTF-8?q?=E5=9B=9B=E4=B8=AA=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.prod13 | 9 +++++++++ .env.prod14 | 9 +++++++++ .env.prod8 | 9 +++++++++ .env.prod9 | 9 +++++++++ .env.production | 8 -------- nginx.conf | 2 +- package.json | 5 ++++- 7 files changed, 41 insertions(+), 10 deletions(-) create mode 100644 .env.prod13 create mode 100644 .env.prod14 create mode 100644 .env.prod8 create mode 100644 .env.prod9 delete mode 100644 .env.production diff --git a/.env.prod13 b/.env.prod13 new file mode 100644 index 0000000..33438d4 --- /dev/null +++ b/.env.prod13 @@ -0,0 +1,9 @@ +# 海拉长春生产 +# port +VITE_DEV_PORT = '25101' + +# production path +VITE_BASE_URL = 'http://172.21.32.13:25101/api' + +# 租户开关 +VITE_APP_TENANT_ENABLE=true \ No newline at end of file diff --git a/.env.prod14 b/.env.prod14 new file mode 100644 index 0000000..d7acb3b --- /dev/null +++ b/.env.prod14 @@ -0,0 +1,9 @@ +# 海拉长春测试 +# port +VITE_DEV_PORT = '25101' + +# production path +VITE_BASE_URL = 'http://172.21.32.14:25101/api' + +# 租户开关 +VITE_APP_TENANT_ENABLE=true \ No newline at end of file diff --git a/.env.prod8 b/.env.prod8 new file mode 100644 index 0000000..dd6e2db --- /dev/null +++ b/.env.prod8 @@ -0,0 +1,9 @@ +# 海拉成都生产 +# port +VITE_DEV_PORT = '25101' + +# production path +VITE_BASE_URL = 'http://172.22.32.8:25101/api' + +# 租户开关 +VITE_APP_TENANT_ENABLE=true \ No newline at end of file diff --git a/.env.prod9 b/.env.prod9 new file mode 100644 index 0000000..f9aa5a7 --- /dev/null +++ b/.env.prod9 @@ -0,0 +1,9 @@ +# 海拉成都测试 +# port +VITE_DEV_PORT = '25101' + +# production path +VITE_BASE_URL = 'http://172.22.32.8:25101/api' + +# 租户开关 +VITE_APP_TENANT_ENABLE=true \ No newline at end of file diff --git a/.env.production b/.env.production deleted file mode 100644 index 66e1490..0000000 --- a/.env.production +++ /dev/null @@ -1,8 +0,0 @@ -# port -VITE_DEV_PORT = '25101' - -# production path -VITE_BASE_URL = 'http://10.62.193.15:25101/api' - -# 租户开关 -VITE_APP_TENANT_ENABLE=true \ No newline at end of file diff --git a/nginx.conf b/nginx.conf index 8da7cf0..44eed55 100644 --- a/nginx.conf +++ b/nginx.conf @@ -32,7 +32,7 @@ http { server { listen 25101; server_name_in_redirect off; - server_name dev.ccwin-in.com; + server_name _; location /api/ { proxy_pass http://sfms3.0/; proxy_next_upstream http_500 http_502 http_503 http_504 error timeout invalid_header; diff --git a/package.json b/package.json index 1522a08..b1e54c0 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,10 @@ "scripts": { "dev": "vite", "test": "vite build --mode test", - "prod": "vite build --mode production", + "prod8": "vite build --mode prod8", + "prod9": "vite build --mode prod9", + "prod13": "vite build --mode prod13", + "prod14": "vite build --mode prod14", "preview": "vite preview", "lint": "eslint --fix --ext .js,.vue src" },