From 648b65eebfca135fe51a4807baabee9d098367f7 Mon Sep 17 00:00:00 2001 From: LL Date: Fri, 30 Jan 2026 15:27:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=89=93=E5=8C=85?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 12 ++++++++++-- bin/deploy.sh | 6 +++--- 2 files changed, 13 insertions(+), 5 deletions(-) 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