Skip to content

Instantly share code, notes, and snippets.

@arteezy
Created September 4, 2016 07:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save arteezy/8a4ccc862725329ea39a3815ccc66ac5 to your computer and use it in GitHub Desktop.
Save arteezy/8a4ccc862725329ea39a3815ccc66ac5 to your computer and use it in GitHub Desktop.
Template for Whenever + rbenv config
set :rbenv, '"$HOME/.rbenv/shims":"$HOME/.rbenv/bin"'
job_type :rake, 'cd :path && PATH=:rbenv:"$PATH" :environment_variable=:environment bundle exec rake :task --silent :output'
job_type :runner, 'cd :path && PATH=:rbenv:"$PATH" bin/rails runner -e :environment ":task" :output'
set :output, 'log/whenever.log'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment