From f17a10fa1490e4a1840997900770a43ce2ac7313 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期三, 09 四月 2025 17:01:45 +0800
Subject: [PATCH] 资源占用中,请检查后再试~

---
 scripts/deploy.js |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/scripts/deploy.js b/scripts/deploy.js
index 70b3ad7..dc4b627 100644
--- a/scripts/deploy.js
+++ b/scripts/deploy.js
@@ -1,4 +1,5 @@
-const { uploadFiles, customerList, checkCustomer, changeBranch } = require('./helper');
+const { uploadFiles, customerList, checkCustomer, changeBranch,deployEnv } = require('./helper');
+const { execSync } = require('child_process');
 
 if (!customerList || customerList.length === 0) {
 	logError(`璇锋纭娇鐢ㄥ懡浠� 鈥渘pm run deploy [customer1,customer2,customer3,...]鈥濓紝
@@ -6,6 +7,7 @@
 	`);
 	exit(); // 閫�鍑鸿剼鏈�
 }
+const myEnv = deployEnv==='pro'?'prod':'dev'
 changeBranch();
 
 checkCustomer('npm run deploy');
@@ -14,3 +16,5 @@
 try {
 	execSync(`npx deploy ${myEnv}`, { stdio: 'inherit' });
 } catch (error) {}
+
+

--
Gitblit v1.9.3