Merge branch 'master' of github.com:internetee/registry

This commit is contained in:
Martin Lensment 2015-01-08 14:34:42 +02:00
commit 737552c99b

View file

@ -5,9 +5,9 @@
# rbenv support # rbenv support
rbenv = 'export PATH="$HOME/.rbenv/bin:$PATH";eval "$(rbenv init -)";' rbenv = 'export PATH="$HOME/.rbenv/bin:$PATH";eval "$(rbenv init -)";'
path = Whenever.path.join('../../current') path = Whenever.path.sub(%r(\/releases\/.*), '/current')
set :job_template, "/bin/bash -l -c '#{rbenv} :job'" 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 # cron output
set :output, 'log/cron.log' set :output, 'log/cron.log'