From 4b8e18a19f375b8d4c12621ec8f8f9ee305d11fa Mon Sep 17 00:00:00 2001 From: gebele Date: Wed, 12 Oct 2016 13:45:37 +0000 Subject: stage save for transmission --- config.ru | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config.ru') 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 -- cgit v1.2.3