Skip to content

Instantly share code, notes, and snippets.

@h2rd
Forked from arteezy/schedule.rb
Created October 12, 2018 08:43
Show Gist options
  • Save h2rd/6d503a846b7f18e0bbd13fc60fc72e4b to your computer and use it in GitHub Desktop.
Save h2rd/6d503a846b7f18e0bbd13fc60fc72e4b 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