From 3bb3bc3aa97aaecf649e858e8af1a6f53c287040 Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Tue, 2 Dec 2014 16:08:08 +0200 Subject: [PATCH] Add logging to cron --- config/deploy.rb | 2 +- config/schedule.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/deploy.rb b/config/deploy.rb index 29d2f678a..f311d073a 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -87,7 +87,7 @@ task deploy: :environment do invoke :'bundle:install' invoke :'rails:db_migrate' invoke :'rails:assets_precompile' - # invoke :'whenever:update' + invoke :'whenever:update' to :launch do queue "mkdir -p #{deploy_to}/current/tmp; touch #{deploy_to}/current/tmp/restart.txt" diff --git a/config/schedule.rb b/config/schedule.rb index 75b6e0e97..5f91a9573 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -5,7 +5,7 @@ # Example: # -# set :output, "/path/to/my/cron_log.log" +set :output, 'log/cron.log' # # every 2.hours do # command "/usr/bin/some_great_command"