Permalink
Browse files

Moving to unicorn.

Webrick fails with the omniauth callback - WEBrick::HTTPStatus::RequestURITooLarge
Followed http://michaelvanrooijen.com/articles/2011/06/01-more-concurrency-on-a-single-heroku-dyno-with-the-new-celadon-cedar-stack/ for switching to unicorn.
  • Loading branch information...
1 parent 7eacccd commit 3f53138bf5db0504a2f9505e03405c1284732928 @mkocher committed May 28, 2012
Showing with 11 additions and 0 deletions.
  1. +1 −0 Gemfile
  2. +7 −0 Gemfile.lock
  3. +1 −0 Procfile
  4. +2 −0 config/unicorn.rb
View
@@ -7,6 +7,7 @@ gem 'rails', '3.2.3'
gem 'pg'
gem 'omniauth-google-apps'
+gem 'unicorn'
group :test, :development do
gem 'rspec-rails'
View
@@ -74,6 +74,7 @@ GEM
railties (>= 3.2.0, < 5.0)
thor (~> 0.14)
json (1.7.3)
+ kgio (2.7.4)
launchy (2.1.0)
addressable (~> 2.2.6)
libwebsocket (0.1.3)
@@ -123,6 +124,7 @@ GEM
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.6)
+ raindrops (0.9.0)
rake (0.9.2.2)
rdoc (3.12)
json (~> 1.4)
@@ -172,6 +174,10 @@ GEM
uglifier (1.2.4)
execjs (>= 0.3.0)
multi_json (>= 1.0.2)
+ unicorn (4.3.1)
+ kgio (~> 2.6)
+ rack
+ raindrops (~> 0.7)
xpath (0.1.4)
nokogiri (~> 1.3)
@@ -193,3 +199,4 @@ DEPENDENCIES
shoulda-matchers
sqlite3
uglifier (>= 1.0.3)
+ unicorn
View
@@ -0,0 +1 @@
+web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
View
@@ -0,0 +1,2 @@
+worker_processes 3
+timeout 30

0 comments on commit 3f53138

Please sign in to comment.