Preserve Existing Lines While Updating Your Crontab When Using The Whenever Gem

Posted by Weston Ganger

It sure sucks if you have multiple apps using the crontab and you go to add your new task to the crontab using whenever -w and it overwrites all of your other rules.

They have a helpful option that aids with this. It handles multiple apps or tasks

whenever --update-crontab some_identifier

Now whenever you want to overwrite that rule use the same identifier. If you want a new rule then use a new identifier.

Related External Links:

Article Topic:Software Development - Rails

Date:November 05, 2015

Recommended Posts



Send Me A Message

I would love to get in touch and talk about your next project. Feel free to send a message and I will get back to you shortly.

Get Connected