diff options
author | Christoph Helma <helma@in-silico.de> | 2009-11-03 17:49:20 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2009-11-03 17:49:20 +0100 |
commit | 72ed92d7c8f46c85ffdcfbb472ff3a1770d07a4e (patch) | |
tree | bba9427ba1aa38b0cf9d5b6304aadf94c643f5e2 /config.ru | |
parent | 1e5762d6328ba3d261a420adaeeff441cfbd5fa2 (diff) |
creation of db directory at startup
Diffstat (limited to 'config.ru')
-rw-r--r-- | config.ru | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -5,6 +5,7 @@ require 'rack' require 'rack/contrib' FileUtils.mkdir_p 'log' unless File.exists?('log') +FileUtils.mkdir_p 'db' unless File.exists?('db') log = File.new("log/#{ENV["RACK_ENV"]}.log", "a") $stdout.reopen(log) $stderr.reopen(log) |