Skip to content

Instantly share code, notes, and snippets.

@a-chernykh
Created May 9, 2011 07:51
Show Gist options
  • Save a-chernykh/962210 to your computer and use it in GitHub Desktop.
Save a-chernykh/962210 to your computer and use it in GitHub Desktop.
whenever + capistrano - custom log path
# Configure whenever
set :whenever_environment, rails_env
set :whenever_output, '/var/www/apps/alt12/current/log/crontab.log'
set :whenever_update_flags, "--update-crontab #{whenever_identifier} --set environment=#{whenever_environment}\\&output=#{whenever_output}" # notice the escaping \& passed to the shell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment