Skip to content

Instantly share code, notes, and snippets.

@etagwerker
Created February 26, 2010 13:25
Show Gist options
  • Save etagwerker/315706 to your computer and use it in GitHub Desktop.
Save etagwerker/315706 to your computer and use it in GitHub Desktop.
after :update_code do
# ...
if uses_whenever
if "cron_node".eql? current_node # is there a current_node variable in capistrano or something like that?
run "cd #{current_release} && whenever --update-crontab #{application}"
sudo "chmod 775 #{current_release}/script/runner"
end
end
# ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment