mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 19:48:28 +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
|
||||
|
||||
# rbenv support
|
||||
set :job_template,
|
||||
"/bin/bash -l -c 'export PATH=\"$HOME/.rbenv/bin:$PATH\";eval\"$(rbenv init -)\"; :job'"
|
||||
set :path, Whenever.path.to_s.sub('^\\','')
|
||||
job_type :runner, ":path/bin/rails r -e :environment ':task' :output"
|
||||
rbenv = 'export PATH="$HOME/.rbenv/bin:$PATH";eval "$(rbenv init -)";'
|
||||
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"
|
||||
|
||||
# cron output
|
||||
set :output, 'log/cron.log'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue