Log task output to subdirectory of the log directory

This commit is contained in:
Maximilian Grundke
2018-03-08 12:31:56 +01:00
parent 77a40c9fc5
commit 8b259e44fe
3 changed files with 3 additions and 2 deletions

View File

@ -19,7 +19,7 @@
# Learn more: http://github.com/javan/whenever
set :output, Whenever.path + '/log/whenever_$(date +%Y%m%d%H%M%S).log'
set :output, Whenever.path + '/log/whenever/whenever_$(date +%Y%m%d%H%M%S).log'
set :environment, ENV['RAILS_ENV'] if ENV['RAILS_ENV']
every 1.day, at: '3:00 am' do