summaryrefslogtreecommitdiff
path: root/config.ru
diff options
context:
space:
mode:
Diffstat (limited to 'config.ru')
-rw-r--r--config.ru12
1 files changed, 11 insertions, 1 deletions
diff --git a/config.ru b/config.ru
index a09f5f7..0662ccd 100644
--- a/config.ru
+++ b/config.ru
@@ -1,3 +1,13 @@
-SERVICE = "nano-lazar"
+ENV["LAZAR_ENV"] = "development"
+SERVICE = "nano-lazar-gui"
+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