修复entrypoint

This commit is contained in:
whyour 2021-05-04 12:13:24 +08:00
parent 43d5063293
commit 9837075992

View File

@ -20,12 +20,12 @@ echo
echo -e "======================4. 启动控制面板========================\n"
cd $dir_root
pm2 restart panel 2>/dev/null || pm2 start npm -n panel -- run panel
pm2 restart panel 2>/dev/null || pm2 start $dir_root/build/app.js -n panel
echo -e "控制面板启动成功...\n"
echo -e "======================5. 启动定时任务========================\n"
cd $dir_root
pm2 restart schedule 2>/dev/null || pm2 start npm -n schedule -- run schedule
pm2 restart schedule 2>/dev/null || pm2 start $dir_root/build/schedule.js -n schedule
echo -e "定时任务启动成功...\n"
echo -e "############################################################"