-
Notifications
You must be signed in to change notification settings - Fork 725
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
Capistrano/Bundler/Vendored Whenever - "Uninitialized Constant Whenever::JobList::Rails" #144
Comments
Does your schedule.rb file call a method on |
Yes :) I am trying to make certain cron tasks only run in certain environments, so I place chunks of code in "if Rails.env == 'staging'" etc… Is there a supported way of doing this :) |
Since you're |
worked great. Thanks for the lightspeed support. |
Similarly, how can I do the same in schedule.rb without referencing the Rails object?
Edit: I should mention that I don't even know what the default value is since it doesn't seem to be mentioned anywhere...perhaps I don't even need to specify an |
You can use |
Thanks! Ended up doing this as the completed line in case anyone else is looking for the same:
|
For more details see javan/whenever#144 (comment)
I have seen similar errors to this marked as resolved in the current version, so I thought I would post as I am using the current version and am still seeing issues with this
My versions:
Deploy.rb
Am I doing something wrong or is this a bug with Whenever?
The text was updated successfully, but these errors were encountered: