这是我的 crontab 文件的内容:
0 0,6,12,18 * * * cd /var/www/app/current && backup perform --trigger db_backup --config_file config/backup.rb --data-path db --log-path log --tmp-path tmp >> /var/www/app/current/log/cron.log 2>&1
0 3 * * * cd /var/www/app/current && RAILS_ENV=production bundle exec rake runs:populate --silent >> /var/www/app/current/log/cron.log 2>&1
59 23 * * * cd /var/www/app/current && RAILS_ENV=production bundle exec rake runs:log --silent >> /var/www/app/current/log/cron.log 2>&1
Run Code Online (Sandbox Code Playgroud)
如果我以 crontab 的所有者身份手动运行其中任何一个,它们工作正常,但该cron.log
文件仅包含:
/bin/sh: bundle: not found
/bin/sh: backup: not found
/bin/sh: bundle: not found
Run Code Online (Sandbox Code Playgroud)
我尝试将每一个都包装在以下(默认情况下,我用来管理我的 cron 文件的 …
我想设置 monit 来监控乘客,但到目前为止我发现的所有内容基本上都说只是使用 monit 监控您的网站。如果可能的话,我想直接监控乘客,这样我就可以更好地控制它。