Permalink
Browse files

Add DevCenter article to Unicorn config

Lower timeout to 5 seconds.
  • Loading branch information...
1 parent d4dfb84 commit 99eaf5d2696bd7e6e20c55e130e70baa02996542 @croaky croaky committed Apr 6, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 templates/unicorn.rb
View
@@ -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|

0 comments on commit 99eaf5d

Please sign in to comment.