Permalink
Browse files

Rearrange config.ru

  • Loading branch information...
joecorcoran committed Jan 23, 2018
1 parent 98718e7 commit a0fd75885e2e489036f2aef0afea4271287a7649
Showing with 4 additions and 3 deletions.
  1. +4 −3 config.ru
@@ -1,5 +1,6 @@
require 'rack/cors'
require 'rack/ssl-enforcer'
require 'raven'
require 'travis/yaml/web'
require 'travis/yaml/web/basic_auth'
require 'travis/yaml/web/env'
@@ -15,13 +16,13 @@ end
use Rack::SslEnforcer if Travis::Yaml::Web::Env.production?
use Travis::Yaml::Web::BasicAuth
run Travis::Yaml::Web
if ENV['SENTRY_DSN']
require 'raven'
Raven.configure do |config|
config.dsn = ENV['SENTRY_DSN']
end
use Raven::Rack
end
use Raven::Rack
run Travis::Yaml::Web

0 comments on commit a0fd758

Please sign in to comment.