修复rebuild命令

This commit is contained in:
whyour 2021-03-21 20:25:27 +08:00
parent 4a618ece68
commit 6e4648d709
2 changed files with 2 additions and 3 deletions

View File

@ -47,7 +47,7 @@ else
fi
echo -e "======================5. 启动控制面板========================\n"
pm2 start ${JD_DIR}/build/app.js
pm2 start ${JD_DIR}/build/app.js -n panel
echo -e "控制面板启动成功...\n"
echo -e "\n容器启动成功...\n"

View File

@ -1,7 +1,6 @@
#!/usr/bin/env bash
ShellDir=${JD_DIR:-$(cd $(dirname $0); pwd)}
JD_DIR=/jd
echo -e "更新shell...\n"
cd ${ShellDir}
@ -20,7 +19,7 @@ echo -e "重新build完成...\n"
echo -e "重启服务...\n"
pm2 start ${JD_DIR}/build/app.js
pm2 restart panel
nginx -s reload
echo -e "重启服务完成...\n"