Skip to content

Commit

Permalink
Add DevCenter article to Unicorn config
Browse files Browse the repository at this point in the history
Lower timeout to 5 seconds.
  • Loading branch information
Dan Croak committed Apr 6, 2013
1 parent d4dfb84 commit 99eaf5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/unicorn.rb
@@ -1,5 +1,7 @@
# https://devcenter.heroku.com/articles/rails-unicorn

worker_processes (ENV['WEB_CONCURRENCY'] || 3).to_i
timeout (ENV['WEB_TIMEOUT'] || 15).to_i
timeout (ENV['WEB_TIMEOUT'] || 5).to_i
preload_app true

before_fork do |server, worker|
Expand Down

0 comments on commit 99eaf5d

Please sign in to comment.