Check for development rather than production to make it work on staging
This commit is contained in:
parent
0681e54cf1
commit
cbb99afe89
|
@ -80,7 +80,7 @@ module Travis::Api
|
|||
[ 420, {}, ['Enhance Your Calm']]
|
||||
end
|
||||
|
||||
use Travis::Api::App::Cors unless Endpoint.production?
|
||||
use Travis::Api::App::Cors if Travis.env == 'development'
|
||||
use Raven::Rack if Endpoint.production?
|
||||
use Rack::Protection::PathTraversal
|
||||
use Rack::SSL if Endpoint.production?
|
||||
|
|
Loading…
Reference in New Issue
Block a user