diff options
author | mr <mr@mrautenberg.de> | 2010-01-25 09:29:21 +0100 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2010-01-25 09:29:21 +0100 |
commit | a165822a7bd663916cff9484a76e6bb6bcf9a353 (patch) | |
tree | 4f33445db772b87ccead41b75e686be144ad3bb1 /lib/templates | |
parent | 4c2ac1a90b686b0e4bc361403770e0756bbfbdf9 (diff) |
internal authorization with first user of users.yaml
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 |