Skip to content

Instantly share code, notes, and snippets.

@chrise86
Forked from a-chernykh/staging.rb
Created May 23, 2013 08:30
Show Gist options
  • Save chrise86/5633519 to your computer and use it in GitHub Desktop.
Save chrise86/5633519 to your computer and use it in GitHub Desktop.
# 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