mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-25 05:45:15 +00:00
switch to unicorn.
This commit is contained in:
1
Gemfile
1
Gemfile
@@ -7,6 +7,7 @@ gem 'rails', '3.1.4'
|
||||
|
||||
gem 'pg'
|
||||
gem 'spree'
|
||||
gem 'unicorn'
|
||||
|
||||
|
||||
# Gems used only for assets and not required
|
||||
|
||||
@@ -84,6 +84,7 @@ GEM
|
||||
actionpack (>= 3.0.0)
|
||||
activesupport (>= 3.0.0)
|
||||
railties (>= 3.0.0)
|
||||
kgio (2.7.4)
|
||||
mail (2.3.3)
|
||||
i18n (>= 0.4.0)
|
||||
mime-types (~> 1.16)
|
||||
@@ -136,6 +137,7 @@ GEM
|
||||
rake (>= 0.8.7)
|
||||
rdoc (~> 3.4)
|
||||
thor (~> 0.14.6)
|
||||
raindrops (0.8.0)
|
||||
rake (0.9.2.2)
|
||||
rdoc (3.12)
|
||||
json (~> 1.4)
|
||||
@@ -212,6 +214,10 @@ GEM
|
||||
uglifier (1.2.3)
|
||||
execjs (>= 0.3.0)
|
||||
multi_json (>= 1.0.2)
|
||||
unicorn (4.2.1)
|
||||
kgio (~> 2.6)
|
||||
rack
|
||||
raindrops (~> 0.7)
|
||||
warden (1.0.6)
|
||||
rack (>= 1.0)
|
||||
wasabi (2.1.0)
|
||||
@@ -231,3 +237,4 @@ DEPENDENCIES
|
||||
spree_usa_epay
|
||||
turn (~> 0.8.3)
|
||||
uglifier (>= 1.0.3)
|
||||
unicorn
|
||||
|
||||
1
Procfile
Normal file
1
Procfile
Normal file
@@ -0,0 +1 @@
|
||||
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
|
||||
2
config/unicorn.rb
Normal file
2
config/unicorn.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
worker_processes 4 # amount of unicorn workers to spin up
|
||||
timeout 30 # restarts workers that hang for 30 seconds
|
||||
Reference in New Issue
Block a user