diff --git a/.env.production b/.env.production index 8bd35e8c6..9c211613a 100644 --- a/.env.production +++ b/.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 + diff --git a/bin/deploy.sh b/bin/deploy.sh index 02d19c68b..54eb61644 100644 --- a/bin/deploy.sh +++ b/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