mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 20:18:22 +02:00
whenever cleanup
This commit is contained in:
parent
666a30264f
commit
3cfc7c1219
1 changed files with 4 additions and 4 deletions
|
@ -4,10 +4,10 @@
|
||||||
# http://en.wikipedia.org/wiki/Cron
|
# http://en.wikipedia.org/wiki/Cron
|
||||||
|
|
||||||
# rbenv support
|
# rbenv support
|
||||||
set :job_template,
|
rbenv = 'export PATH="$HOME/.rbenv/bin:$PATH";eval "$(rbenv init -)";'
|
||||||
"/bin/bash -l -c 'export PATH=\"$HOME/.rbenv/bin:$PATH\";eval\"$(rbenv init -)\"; :job'"
|
path = Whenever.path.to_s.sub('^\\','')
|
||||||
set :path, Whenever.path.to_s.sub('^\\','')
|
set :job_template, "/bin/bash -l -c '#{rbenv} :job'"
|
||||||
job_type :runner, ":path/bin/rails r -e :environment ':task' :output"
|
job_type :runner, "#{path}/bin/rails r -e :environment ':task' :output"
|
||||||
|
|
||||||
# cron output
|
# cron output
|
||||||
set :output, 'log/cron.log'
|
set :output, 'log/cron.log'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue