Browse Source

修改bug

master
liuchen 8 months ago
parent
commit
285c335f05
  1. 2
      .env.production
  2. 2
      .env.test
  3. 6
      Dockerfile
  4. 2
      nginx.conf
  5. 4
      package.json

2
.env.production

@ -28,7 +28,7 @@ VITE_SOURCEMAP=false
VITE_BASE_PATH=/ VITE_BASE_PATH=/
# 输出路径 # 输出路径
VITE_OUT_DIR=dist VITE_OUT_DIR=sfms3.0
# 自定义接口路径 # 自定义接口路径
VITE_INTERFACE_URL='http://10.62.193.15:25100/magic/web/index.html' VITE_INTERFACE_URL='http://10.62.193.15:25100/magic/web/index.html'

2
.env.test

@ -28,7 +28,7 @@ VITE_SOURCEMAP=false
VITE_BASE_PATH=/ VITE_BASE_PATH=/
# 输出路径 # 输出路径
VITE_OUT_DIR=dist VITE_OUT_DIR=sfms3.0
# 自定义接口路径 # 自定义接口路径
VITE_INTERFACE_URL='http://dev.ccwin-in.com:25110/magic/web/index.html' VITE_INTERFACE_URL='http://dev.ccwin-in.com:25110/magic/web/index.html'

6
Dockerfile

@ -1,5 +1,7 @@
# 设置基础镜像 # 设置基础镜像
FROM nginx FROM nginx
# 将dist文件中的内容复制到 /usr/share/nginx/html/ 这个目录下面
COPY dist/ /usr/share/nginx/html/ WORKDIR /opt/sfms3.0
COPY nginx.conf /etc/nginx/nginx.conf COPY nginx.conf /etc/nginx/nginx.conf
# 将dist文件中的内容复制到 /usr/share/nginx/html/ 这个目录下面
COPY sfms3.0/ /opt/sfms3.0

2
nginx.conf

@ -61,7 +61,7 @@ http {
proxy_cache_valid 200 304 12h; proxy_cache_valid 200 304 12h;
proxy_cache_key $host$uri$is_args$args; proxy_cache_key $host$uri$is_args$args;
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
root /usr/share/nginx/html; root /opt/sfms3.0;
index index.html index.htm; index index.html index.htm;
} }
} }

4
package.json

@ -6,8 +6,8 @@
"private": false, "private": false,
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"test": "vite build --mode test", "test": "vite build --mode test --max-old-space-size=4096",
"prod": "vite build --mode production", "prod": "vite build --mode production --max-old-space-size=4096",
"preview": "vite preview", "preview": "vite preview",
"lint": "eslint --fix --ext .js,.vue src" "lint": "eslint --fix --ext .js,.vue src"
}, },

Loading…
Cancel
Save