Add concurrecy with unicorn
This commit is contained in:
parent
660c07e155
commit
999306ca95
4
Gemfile
4
Gemfile
|
@ -17,6 +17,10 @@ group :development, :production do
|
|||
gem 'pg'
|
||||
end
|
||||
|
||||
group :production do
|
||||
gem 'unicorn'
|
||||
end
|
||||
|
||||
group :test do
|
||||
gem 'ZenTest'
|
||||
gem 'simplecov'
|
||||
|
|
|
@ -57,6 +57,7 @@ GEM
|
|||
i18n (0.6.0)
|
||||
jruby-openssl (0.7.4)
|
||||
bouncy-castle-java
|
||||
kgio (2.4.2)
|
||||
libv8 (3.3.10.2)
|
||||
mail (2.3.0)
|
||||
i18n (>= 0.4.0)
|
||||
|
@ -114,10 +115,13 @@ GEM
|
|||
uglifier (0.5.4)
|
||||
execjs (>= 0.3.0)
|
||||
multi_json (>= 1.0.2)
|
||||
unicorn (3.7.0)
|
||||
kgio (~> 2.3)
|
||||
rack
|
||||
warden (1.0.4)
|
||||
rack (>= 1.0)
|
||||
webmock (1.6.4)
|
||||
addressable (> 2.2.5, ~> 2.2)
|
||||
addressable (~> 2.2, > 2.2.5)
|
||||
crack (>= 0.1.7)
|
||||
|
||||
PLATFORMS
|
||||
|
@ -139,4 +143,5 @@ DEPENDENCIES
|
|||
therubyrhino
|
||||
turn
|
||||
uglifier
|
||||
unicorn
|
||||
webmock
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
|
|
@ -0,0 +1,3 @@
|
|||
worker_processes 2
|
||||
timeout 60
|
||||
preload_app true
|
Loading…
Reference in New Issue