Updates logic in how cron jobs are generated as part of the whenever workflow, to include the specified RAILS_ENV.
For example, running:
RAILS_ENV=production whenever -w will update the crontab with all scheduled tasks including RAILS_ENV=productionRAILS_ENV=staging whenever -w will update the crontab with all scheduled tasks including RAILS_ENV=staging
The same applies when running whenever without -w, which will show generated cron jobs, but not update the crontab.
If no RAILS_ENV value is set, this will default to development.
Updates logic in how cron jobs are generated as part of the
whenever
workflow, to include the specifiedRAILS_ENV
.For example, running:
RAILS_ENV=production whenever -w
will update the crontab with all scheduled tasks includingRAILS_ENV=production
RAILS_ENV=staging whenever -w
will update the crontab with all scheduled tasks includingRAILS_ENV=staging
The same applies when running
whenever
without-w
, which will show generated cron jobs, but not update the crontab.If no
RAILS_ENV
value is set, this will default todevelopment
.