Skip to content
Browse files

Ride the unicorn.

  • Loading branch information...
1 parent 90ab385 commit d531983d220111f23d7dbe6036e71ca69d453cd4 @mheffner mheffner committed
Showing with 12 additions and 0 deletions.
  1. +2 −0 Gemfile
  2. +7 −0 Gemfile.lock
  3. +1 −0 Procfile
  4. +2 −0 config/unicorn.rb
View
2 Gemfile
@@ -20,6 +20,8 @@ gem 'tinder', '~> 1.7'
#
gem 'always_verify_ssl_certificates', '~> 0.3.0'
+gem 'unicorn'
+
# Add dependencies to develop your gem here.
# Include everything needed to run rake, tests, features, etc.
group :development do
View
7 Gemfile.lock
@@ -29,6 +29,7 @@ GEM
bundler (~> 1.0)
git (>= 1.2.5)
rake
+ kgio (2.6.0)
mail (2.3.0)
i18n (>= 0.4.0)
mime-types (~> 1.16)
@@ -38,6 +39,7 @@ GEM
multipart-post (1.1.3)
polyglot (0.3.2)
rack (1.3.2)
+ raindrops (0.7.0)
rake (0.9.2)
rcov (0.9.10)
shotgun (0.9)
@@ -69,6 +71,10 @@ GEM
eventmachine (>= 0.12.8)
http_parser.rb (~> 0.5.1)
simple_oauth (~> 0.1.4)
+ unicorn (4.1.1)
+ kgio (~> 2.4)
+ rack
+ raindrops (~> 0.6)
yajl-ruby (0.8.3)
PLATFORMS
@@ -88,4 +94,5 @@ DEPENDENCIES
sinatra (~> 1.2.6)
thin (~> 1.2.11)
tinder (~> 1.7)
+ unicorn
yajl-ruby
View
1 Procfile
@@ -0,0 +1 @@
+web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
View
2 config/unicorn.rb
@@ -0,0 +1,2 @@
+worker_processes 4 # amount of unicorn workers to spin up
+timeout 30 # restarts workers that hang for 30 seconds

0 comments on commit d531983

Please sign in to comment.
Something went wrong with that request. Please try again.