Log task output to subdirectory of the log directory
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@ -10,7 +10,7 @@
|
||||
/config/*.staging-epic.yml
|
||||
/config/deploy/staging-epic.rb
|
||||
/coverage
|
||||
/log
|
||||
/log/*.*
|
||||
/public/assets
|
||||
/public/uploads
|
||||
/rubocop.html
|
||||
|
@ -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
|
||||
|
1
log/whenever/.gitignore
vendored
Normal file
1
log/whenever/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
*.log
|
Reference in New Issue
Block a user