New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Whenever taking 'production' environment during local development. #660
Comments
Your pasted logs show this working. What's the problem? |
It looks like the issue @prasadsurase is bringing up is that without explicitly passing in |
This is documented in the "Setting variables on the fly" page of the wiki, but not in the README — which is otherwise sufficiently comprehensive that most people wouldn't even think to check the wiki. Could it be added? I'd agree that matching the RAILS_ENV the "whenever" command is running in should be the default, though, rather than always defaulting to "production". Convention over configuration, and all that. (as an aside, there's a page called "instruction and examples" in the wiki which just consists of "bbbbb" :) |
@unikitty37 I would accept a PR which includes all wiki content into the README. If you would be willing to prep that, I would appreciate it. I can then deactivate the wiki entirely. |
I'd also accept a PR which defaults to matching |
Fixes javan#660 This changes whenever to get set the environment for cron jobs based off the currently set RAILS_ENV environment variable. If RAILS_ENV is not set it defaults to production to be backwards compatible with the previous behaviour.
i see an open pr |
I am using whenever(0.9.7) with rails(4.2.5.2) and ruby(2.3.0). Whenever I update the crontab using whenever, the RAILS_ENV is set to production which actually should be development since my application is running in the development env. Is this a bug or an expected behaviour?
The text was updated successfully, but these errors were encountered: