umts / bojangles

Ruby script for monitoring the PVTA realtime bus departures feed
MIT License
0 stars 0 forks source link

Simplify the 'rake' job type #38

Closed dfaulken closed 7 years ago

dfaulken commented 7 years ago

Looked into this because I don't want the --silent flag, but as I mentioned before I also see no reason RAILS_ENV=production needs to be there either.

dfaulken commented 7 years ago

Ran bundle exec whenever -w locally and now crontab -l gives me:

* 0-2,5-23 * * * /bin/bash -l -c 'cd /Users/dfaulken/projects/bojangles && bundle exec rake bojangles:go'

0 4 * * * /bin/bash -l -c 'cd /Users/dfaulken/projects/bojangles && bundle exec rake bojangles:daily'

😄