diff options
Diffstat (limited to 'lib/templates')
-rw-r--r-- | lib/templates/config.ru | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/templates/config.ru b/lib/templates/config.ru index 63dd2ce..ffccbc1 100644 --- a/lib/templates/config.ru +++ b/lib/templates/config.ru @@ -8,6 +8,9 @@ FileUtils.mkdir_p 'log' unless File.exists?('log') log = File.new("log/#{ENV["RACK_ENV"]}.log", "a") $stdout.reopen(log) $stderr.reopen(log) +$stdout.sync = true +$stderr.sync = true + if ENV['RACK_ENV'] == 'production' use Rack::MailExceptions do |mail| @@ -21,3 +24,4 @@ end run Sinatra::Application +set :raise_errors, true
\ No newline at end of file |