Skip to content

Commit

Permalink
Moving to unicorn.
Browse files Browse the repository at this point in the history
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
mkocher committed May 28, 2012
1 parent 7eacccd commit 3f53138
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ gem 'rails', '3.2.3'


gem 'pg' gem 'pg'
gem 'omniauth-google-apps' gem 'omniauth-google-apps'
gem 'unicorn'


group :test, :development do group :test, :development do
gem 'rspec-rails' gem 'rspec-rails'
Expand Down
7 changes: 7 additions & 0 deletions Gemfile.lock
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ GEM
railties (>= 3.2.0, < 5.0) railties (>= 3.2.0, < 5.0)
thor (~> 0.14) thor (~> 0.14)
json (1.7.3) json (1.7.3)
kgio (2.7.4)
launchy (2.1.0) launchy (2.1.0)
addressable (~> 2.2.6) addressable (~> 2.2.6)
libwebsocket (0.1.3) libwebsocket (0.1.3)
Expand Down Expand Up @@ -123,6 +124,7 @@ GEM
rake (>= 0.8.7) rake (>= 0.8.7)
rdoc (~> 3.4) rdoc (~> 3.4)
thor (~> 0.14.6) thor (~> 0.14.6)
raindrops (0.9.0)
rake (0.9.2.2) rake (0.9.2.2)
rdoc (3.12) rdoc (3.12)
json (~> 1.4) json (~> 1.4)
Expand Down Expand Up @@ -172,6 +174,10 @@ GEM
uglifier (1.2.4) uglifier (1.2.4)
execjs (>= 0.3.0) execjs (>= 0.3.0)
multi_json (>= 1.0.2) multi_json (>= 1.0.2)
unicorn (4.3.1)
kgio (~> 2.6)
rack
raindrops (~> 0.7)
xpath (0.1.4) xpath (0.1.4)
nokogiri (~> 1.3) nokogiri (~> 1.3)


Expand All @@ -193,3 +199,4 @@ DEPENDENCIES
shoulda-matchers shoulda-matchers
sqlite3 sqlite3
uglifier (>= 1.0.3) uglifier (>= 1.0.3)
unicorn
1 change: 1 addition & 0 deletions Procfile
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1 @@
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
2 changes: 2 additions & 0 deletions config/unicorn.rb
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,2 @@
worker_processes 3
timeout 30

0 comments on commit 3f53138

Please sign in to comment.