-
-
Save h2rd/6d503a846b7f18e0bbd13fc60fc72e4b to your computer and use it in GitHub Desktop.
Template for Whenever + rbenv config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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