diff options
| -rw-r--r-- | .gitignore | 5 | ||||
| -rw-r--r-- | config.ru | 5 |
2 files changed, 9 insertions, 1 deletions
@@ -4,4 +4,7 @@ vendor/ # Database config/database.yml -db/*.sqlite3
\ No newline at end of file +db/*.sqlite3 + +# Logs +*.log
\ No newline at end of file @@ -9,3 +9,8 @@ environment = ENV['DATABASE_URL'] ? 'production' : 'development' Camping::Models::Base.establish_connection dbconfig[environment] Clip.create if Clip.respond_to? :create + +# Log +log = File.new("#{ENV['RACK_ENV']}.log", 'a+') +$stdout.reopen(log) +$stderr.reopen(log) |
