summaryrefslogtreecommitdiff
path: root/config.ru
diff options
context:
space:
mode:
Diffstat (limited to 'config.ru')
-rw-r--r--config.ru6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.ru b/config.ru
index eec777d..36438a3 100644
--- a/config.ru
+++ b/config.ru
@@ -4,4 +4,10 @@ require 'bundler'
Bundler.require
require File.expand_path './application.rb'
require "sinatra/reloader" if development?
+
+FileUtils.mkdir_p 'log' unless File.exists?('log')
+log = File.new("log/nano-lazar.log", "a")
+$stdout.reopen(log)
+$stderr.reopen(log)
+
run Sinatra::Application