summaryrefslogtreecommitdiff
path: root/lib/templates
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2010-01-25 09:29:21 +0100
committermr <mr@mrautenberg.de>2010-01-25 09:29:21 +0100
commita165822a7bd663916cff9484a76e6bb6bcf9a353 (patch)
tree4f33445db772b87ccead41b75e686be144ad3bb1 /lib/templates
parent4c2ac1a90b686b0e4bc361403770e0756bbfbdf9 (diff)
internal authorization with first user of users.yaml
Diffstat (limited to 'lib/templates')
-rw-r--r--lib/templates/config.ru4
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