修改check逻辑

This commit is contained in:
whyour 2022-11-30 21:29:58 +08:00
parent d5fd9c57ec
commit 52fef96c1c

View File

@ -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