From a24a70093980366b114da74beac553228fe92525 Mon Sep 17 00:00:00 2001 From: Priit Tark Date: Thu, 8 Jan 2015 14:01:14 +0200 Subject: [PATCH] update whenver --- config/schedule.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/schedule.rb b/config/schedule.rb index 221dddc95..69c11c348 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -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'