浏览代码

fix crontab

lushuncheng 6 年之前
父节点
当前提交
768928ab1d
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      shell/container-up.sh

+ 4 - 0
shell/container-up.sh

@@ -75,4 +75,8 @@ cd /proginn-frontend
 chown -R www-data:www-data .
 su -c "cd /proginn-frontend && rm -rf node_modules && npx yarn --registry=https://registry.npm.taobao.org install && npm run build" -s /bin/bash - www-data
 su -c "cd /proginn-frontend && pm2 start npm --name proginn-frontend -- run start" -s /bin/bash - www-data
+
+# 启动定时脚本
+service cron restart
+
 tail -f /dev/null