summaryrefslogtreecommitdiff
path: root/config.ru
blob: 36438a37fa15407c1f3b2c0c8510a7d9b6cf879f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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