update whenever job_type

This commit is contained in:
Priit Tark 2015-01-08 14:11:24 +02:00
parent a24a700939
commit b56e4eb0ed

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, "cd #{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'