update whenver

This commit is contained in:
Priit Tark 2015-01-08 14:01:14 +02:00
parent 1d0768e0ab
commit a24a700939

View file

@ -7,7 +7,7 @@
rbenv = 'export PATH="$HOME/.rbenv/bin:$PATH";eval "$(rbenv init -)";'
path = Whenever.path.sub(/\/releases\/.*/, '/current')
set :job_template, "/bin/bash -l -c '#{rbenv} :job'"
job_type :runner, "#{path}/bin/rails r -e :environment ':task' :output"
job_type :runner, "cd #{path} && bin/rails r -e :environment ':task' :output"
# cron output
set :output, 'log/cron.log'