From 52fef96c1c2d1b181bc8c79b895054387641ef6b Mon Sep 17 00:00:00 2001 From: whyour Date: Wed, 30 Nov 2022 21:29:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9check=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/check.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/shell/check.sh b/shell/check.sh index 63e0251c..14edcd66 100644 --- a/shell/check.sh +++ b/shell/check.sh @@ -87,11 +87,18 @@ check_pm2() { fi } +start_public() { + echo -e "=====> 启动公开服务\n" + pm2 delete public --source-map-support --time &>/dev/null + pm2 start $dir_static/build/public.js -n public --source-map-support --time &>/dev/null +} + main() { echo -e "=====> 开始检测" npm i -g pnpm - patch_version pnpm add -g pm2 + patch_version + start_public copy_dep check_ql check_nginx