Permalink
Browse files

Adding unicorn.

  • Loading branch information...
1 parent 5e5a11e commit 0e9de3af9155d725bf8aecf23067c984abce66d0 @lunks lunks committed Nov 19, 2013
Showing with 13 additions and 1 deletion.
  1. +1 −0 Gemfile
  2. +7 −0 Gemfile.lock
  3. +1 −0 Procfile
  4. +1 −1 fotologffffffu.rb
  5. +3 −0 unicorn.rb
View
@@ -1,5 +1,6 @@
source 'http://rubygems.org'
ruby '2.0.0'
+gem 'unicorn'
gem 'rake'
gem 'sinatra'
gem 'haml'
View
@@ -14,6 +14,7 @@ GEM
haml (4.0.4)
tilt
httpclient (2.3.4.1)
+ kgio (2.8.1)
metaclass (0.0.1)
method_source (0.8.2)
mime-types (2.0)
@@ -31,6 +32,7 @@ GEM
rack
rack-test (0.6.2)
rack (>= 1.0)
+ raindrops (0.12.0)
rake (10.1.0)
rspec (2.14.1)
rspec-core (~> 2.14.0)
@@ -48,6 +50,10 @@ GEM
tilt (~> 1.3, >= 1.3.4)
slop (3.4.7)
tilt (1.4.1)
+ unicorn (4.7.0)
+ kgio (~> 2.6)
+ rack
+ raindrops (~> 0.7)
xpath (2.0.0)
nokogiri (~> 1.3)
@@ -68,3 +74,4 @@ DEPENDENCIES
rspec (>= 2.0.0)
shotgun
sinatra
+ unicorn
View
@@ -0,0 +1 @@
+web: bundle exec unicorn -p $PORT -c ./unicorn.rb
View
@@ -5,7 +5,7 @@
Bundler.require :default
require 'open-uri'
set :app_file, __FILE__
-set :server, 'webrick'
+set :server, 'unicorn'
require './app/application_helper'
require './app/cache'
View
@@ -0,0 +1,3 @@
+worker_processes 3
+timeout 30
+preload_app true

0 comments on commit 0e9de3a

Please sign in to comment.