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

2
.gitignore vendored
View File

@ -10,7 +10,7 @@
/config/*.staging-epic.yml /config/*.staging-epic.yml
/config/deploy/staging-epic.rb /config/deploy/staging-epic.rb
/coverage /coverage
/log /log/*.*
/public/assets /public/assets
/public/uploads /public/uploads
/rubocop.html /rubocop.html

View File

@ -19,7 +19,7 @@
# Learn more: http://github.com/javan/whenever # 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'] set :environment, ENV['RAILS_ENV'] if ENV['RAILS_ENV']
every 1.day, at: '3:00 am' do every 1.day, at: '3:00 am' do

1
log/whenever/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.log