forked from drone/command-center-dashboard

罗广辉
2025-04-02 d735e8d695406081e05b539e16e97bd5a5d789aa
ci: 测试环境走测试环境
4 files modified
1 files added
48 ■■■■ changed files
.env 7 ●●●●● patch | view | raw | blame | history
.env.development 10 ●●●●● patch | view | raw | blame | history
.env.production 12 ●●●●● patch | view | raw | blame | history
.env.test 15 ●●●●● patch | view | raw | blame | history
Dockerfile.test 4 ●●●● patch | view | raw | blame | history
.env
New file
@@ -0,0 +1,7 @@
VITE_APP_API = /api
#调试参数
VITE_APP_DEBUG_KEY = saber
VITE_APP_DEBUG_SWITCH = false
#页面基础路径
VITE_APP_BASE = /command-center-dashboard/
.env.development
@@ -3,15 +3,5 @@
VITE_APP_ENV = 'development'
#接口地址
VITE_APP_API = /api
# VITE_APP_API_URL = https://wrj.shuixiongit.com/api
# 连接本地服务器
VITE_APP_API_URL = http://192.168.1.7
#调试参数
VITE_APP_DEBUG_KEY = saber
VITE_APP_DEBUG_SWITCH = false
#页面基础路径
VITE_APP_BASE = /command-center-dashboard/
.env.production
@@ -1,17 +1,5 @@
#生产环境配置
VITE_APP_ENV = 'production'
#接口地址
#填写前缀 [/api] 需要用nginx进行反向代理
#填写地址 [https://api.bladex.cn] 只需要保证接口支持跨域即可, 无需再做代理
VITE_APP_API=/api
#调试参数
VITE_APP_DEBUG_KEY=saber
VITE_APP_DEBUG_SWITCH=false
#页面基础路径
VITE_APP_BASE = /command-center-dashboard/
# 是否在打包时开启压缩,支持 gzip 和 brotli
VITE_BUILD_COMPRESS = gzip
.env.test
@@ -1,17 +1,4 @@
#开发环境配置
#测试环境配置
VITE_APP_ENV = 'test'
#接口地址
VITE_APP_API = /api
# VITE_APP_API_URL = https://wrj.shuixiongit.com/api
# 连接本地服务器
VITE_APP_API_URL = http://192.168.1.7
#调试参数
VITE_APP_DEBUG_KEY = saber
VITE_APP_DEBUG_SWITCH = false
#页面基础路径
VITE_APP_BASE = /command-center-dashboard/
Dockerfile.test
@@ -10,7 +10,7 @@
RUN rm -rf node_modules package-lock.json && npm install --registry=https://registry.npmmirror.com
# 构建项目
RUN npm run build:dev
RUN npm run build:test
# 查看
RUN ls /app/dist
RUN ls /app/dist