Browse Source

fix: 修改打包文件

featrue-lingshan
LL 3 months ago
parent
commit
648b65eebf
  1. 12
      .env.production
  2. 6
      bin/deploy.sh

12
.env.production

@ -1,5 +1,13 @@
NODE_ENV=production
VUE_APP_API_SERVER = https://epmet-cloud.elinkservice.cn/api
VUE_APP_BIPASS_API_SERVER = http://bipaas.elinkservice.cn/linkdata/linkdata-gateway/route
# VUE_APP_API_SERVER = https://epmet-cloud.elinkservice.cn/api
# VUE_APP_BIPASS_API_SERVER = http://bipaas.elinkservice.cn/linkdata/linkdata-gateway/route
# VUE_APP_NODE_ENV=prod
# VUE_APP_PUBLIC_PATH=epmet-oper
VUE_APP_API_SERVER = http://192.168.1.144/api
VUE_APP_BIPASS_API_SERVER = /linkdata/linkdata-gateway/route
VUE_APP_SOCKET_SERVER = ws://219.146.91.110:30801/api
VUE_APP_AI_URL = 'http://101.126.17.175:1080/auth'
VUE_APP_NODE_ENV=prod
VUE_APP_PUBLIC_PATH=epmet-oper

6
bin/deploy.sh

@ -7,9 +7,9 @@ echo ""
# 切换到项目根目录
cd "$(dirname "$0")/.."
# 步骤1: 构建项目(development环境)
echo "[步骤 1/4] 构建项目(development环境)..."
npm run build
# 步骤1: 构建项目(production环境)
echo "[步骤 1/4] 构建项目(production环境)..."
npm run build:prod
if [ $? -ne 0 ]; then
echo "[错误] 构建失败!"
exit 1

Loading…
Cancel
Save