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']]
|
[ 420, {}, ['Enhance Your Calm']]
|
||||||
end
|
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 Raven::Rack if Endpoint.production?
|
||||||
use Rack::Protection::PathTraversal
|
use Rack::Protection::PathTraversal
|
||||||
use Rack::SSL if Endpoint.production?
|
use Rack::SSL if Endpoint.production?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user