-
Notifications
You must be signed in to change notification settings - Fork 726
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
cap development whenever:update_crontab silently succeeds, does nothing #612
Comments
I can manually run |
Although it doesn't set the environment correctly (it's always production). |
Please provide trace output of your full Capistrano run. |
For what it's worth:
|
Please provide your full Capistrano config. Please also check that you have a server attached to Whenever's default role of |
When overriding # deploy.rb
set :whenever_roles, :all solves the problem. |
…loyment ttps://github.com/javan/whenever/issues/612 Fix bug with not updating crontab by whenever gem
Having a similar issue. When a server has a single role, it works, when a server has multiple roles, only the Whenever comments are added to the user's crontab: server "xxx", :user => "yyy", :roles => %w[web app db]
server "xxx", :user => "yyy", :roles => %w[jobs]
set :whenever_roles, :all
every 2.minutes, :roles => [:web] do # %w[web app db] does not work either
# Results in a crontab with just the Whenever comment
end
every 12.hours, :roles => [:jobs] do
# Works fine
end |
When I run
cap development whenever:update_crontab
, it appears to silently succeed, with no output, and the crontab on the server is not updated. Likewise,cap development deploy
shows nowhenever
-related activity.In my
Capfile
:In
deploy/development.rb
:In my
deploy.rb
:My
schedule.rb
:The text was updated successfully, but these errors were encountered: