Commit d3ba8bfe by Jim Abramson

Merge pull request #68 from edx/feature/jsa/heroku-timeout

optimize request timeout settings for heroku
parents cf3b1785 371e7c34
...@@ -54,3 +54,4 @@ end ...@@ -54,3 +54,4 @@ end
gem 'newrelic_rpm' gem 'newrelic_rpm'
gem 'newrelic_moped' gem 'newrelic_moped'
gem 'unicorn' gem 'unicorn'
gem "rack-timeout"
...@@ -117,6 +117,7 @@ GEM ...@@ -117,6 +117,7 @@ GEM
rack rack
rack-test (0.6.1) rack-test (0.6.1)
rack (>= 1.0) rack (>= 1.0)
rack-timeout (0.0.4)
raindrops (0.10.0) raindrops (0.10.0)
rake (0.9.2.2) rake (0.9.2.2)
rdiscount (1.6.8) rdiscount (1.6.8)
...@@ -190,6 +191,7 @@ DEPENDENCIES ...@@ -190,6 +191,7 @@ DEPENDENCIES
pry pry
pry-nav pry-nav
rack-test rack-test
rack-timeout
rake rake
rdiscount rdiscount
rest-client rest-client
......
require "rack-timeout"
use Rack::Timeout # Call as early as possible so rack-timeout runs before other middleware.
Rack::Timeout.timeout = 20
require './app' require './app'
run Sinatra::Application run Sinatra::Application
worker_processes 4 worker_processes 4
timeout 30 timeout 25
preload_app true preload_app true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment