I have an RoR app, which was deployed with Capistrano to a staging server. The server has RVM to handle the Rubies. The app uses Whenever to create cron jobs.
The deploy works as expected, with Capistrano triggering Whenever to update the crontab with the new jobs.
My question is: how do I clean the crontab using whenever?
I've tried the command $ RAILS_ENV=staging bundle exec whenever -c
, at the current
folder of the app, but the crontab was not erased.
The only way I was able to erase it was using the command $ crontab -r
, but I would like to know if it possible to use Whenever for this also.
question from:
https://stackoverflow.com/questions/65847250/how-to-clean-crontab-created-with-whenever-at-a-staging-server-ror-app-deployed 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…