增加 pm2 平滑重启

This commit is contained in:
whyour
2023-05-06 00:09:03 +08:00
parent 3d11210aeb
commit 5baa8e4391
8 changed files with 54 additions and 45 deletions
-7
View File
@@ -74,12 +74,6 @@ 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@8.3.1
@@ -97,7 +91,6 @@ main() {
pnpm add -g pm2 tsx
reset_env
start_public
copy_dep
check_ql
check_nginx