Browse Source

fix: 增加海拉四个环境

master
liuchen864 7 months ago
parent
commit
fcc3f3598c
  1. 9
      .env.prod13
  2. 9
      .env.prod14
  3. 9
      .env.prod8
  4. 9
      .env.prod9
  5. 8
      .env.production
  6. 2
      nginx.conf
  7. 5
      package.json

9
.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

9
.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

9
.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

9
.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

8
.env.production

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

2
nginx.conf

@ -32,7 +32,7 @@ http {
server { server {
listen 25101; listen 25101;
server_name_in_redirect off; server_name_in_redirect off;
server_name dev.ccwin-in.com; server_name _;
location /api/ { location /api/ {
proxy_pass http://sfms3.0/; proxy_pass http://sfms3.0/;
proxy_next_upstream http_500 http_502 http_503 http_504 error timeout invalid_header; proxy_next_upstream http_500 http_502 http_503 http_504 error timeout invalid_header;

5
package.json

@ -7,7 +7,10 @@
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"test": "vite build --mode test", "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", "preview": "vite preview",
"lint": "eslint --fix --ext .js,.vue src" "lint": "eslint --fix --ext .js,.vue src"
}, },

Loading…
Cancel
Save