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