Switched to using Puma as the app server.
This commit is contained in:
3
Capfile
3
Capfile
@@ -5,6 +5,7 @@ require 'capistrano/setup'
|
|||||||
require 'capistrano/deploy'
|
require 'capistrano/deploy'
|
||||||
require 'capistrano/rbenv'
|
require 'capistrano/rbenv'
|
||||||
require 'capistrano/bundler'
|
require 'capistrano/bundler'
|
||||||
|
require 'capistrano/puma'
|
||||||
require 'capistrano/rails/assets'
|
require 'capistrano/rails/assets'
|
||||||
require 'capistrano/rails/migrations'
|
require 'capistrano/rails/migrations'
|
||||||
|
|
||||||
@@ -17,4 +18,4 @@ namespace :deploy do
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Load custom tasks from `lib/capistrano/tasks' if you have any defined
|
# Load custom tasks from `lib/capistrano/tasks' if you have any defined
|
||||||
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
|
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
|
||||||
|
|||||||
11
Gemfile
11
Gemfile
@@ -31,9 +31,10 @@ group :development do
|
|||||||
gem 'binding_of_caller'
|
gem 'binding_of_caller'
|
||||||
gem 'rails-erd'
|
gem 'rails-erd'
|
||||||
# deploy with capistrano
|
# deploy with capistrano
|
||||||
gem 'capistrano-rails', '~> 1.1.2'
|
gem 'capistrano-rails'
|
||||||
gem 'capistrano-rbenv', '~> 2.0'
|
gem 'capistrano-rbenv'
|
||||||
gem 'capistrano-bundler', '~> 1.1.3'
|
gem 'capistrano-bundler'
|
||||||
|
gem 'capistrano-puma'
|
||||||
# windows timezone foo
|
# windows timezone foo
|
||||||
gem 'tzinfo-data', platforms: [:mingw, :mswin]
|
gem 'tzinfo-data', platforms: [:mingw, :mswin]
|
||||||
end
|
end
|
||||||
@@ -43,6 +44,6 @@ group :test do
|
|||||||
end
|
end
|
||||||
|
|
||||||
group :production do
|
group :production do
|
||||||
# Use unicorn as the app server
|
# Use puma as the app server
|
||||||
gem 'unicorn'
|
gem 'puma'
|
||||||
end
|
end
|
||||||
|
|||||||
17
Gemfile.lock
17
Gemfile.lock
@@ -115,6 +115,8 @@ GEM
|
|||||||
capistrano-bundler (1.1.4)
|
capistrano-bundler (1.1.4)
|
||||||
capistrano (~> 3.1)
|
capistrano (~> 3.1)
|
||||||
sshkit (~> 1.2)
|
sshkit (~> 1.2)
|
||||||
|
capistrano-puma (0.2.3)
|
||||||
|
capistrano (>= 3.0)
|
||||||
capistrano-rails (1.1.8)
|
capistrano-rails (1.1.8)
|
||||||
capistrano (~> 3.1)
|
capistrano (~> 3.1)
|
||||||
capistrano-bundler (~> 1.1)
|
capistrano-bundler (~> 1.1)
|
||||||
@@ -156,7 +158,6 @@ GEM
|
|||||||
coffee-rails (>= 3.2.0)
|
coffee-rails (>= 3.2.0)
|
||||||
railties (>= 3.2.0)
|
railties (>= 3.2.0)
|
||||||
sass-rails (>= 3.2.0)
|
sass-rails (>= 3.2.0)
|
||||||
kgio (2.11.2)
|
|
||||||
loofah (2.2.2)
|
loofah (2.2.2)
|
||||||
crass (~> 1.0.2)
|
crass (~> 1.0.2)
|
||||||
nokogiri (>= 1.5.9)
|
nokogiri (>= 1.5.9)
|
||||||
@@ -178,6 +179,7 @@ GEM
|
|||||||
mini_portile2 (~> 2.3.0)
|
mini_portile2 (~> 2.3.0)
|
||||||
nokogumbo (1.5.0)
|
nokogumbo (1.5.0)
|
||||||
nokogiri
|
nokogiri
|
||||||
|
puma (3.11.4)
|
||||||
rack (1.6.9)
|
rack (1.6.9)
|
||||||
rack-test (0.6.3)
|
rack-test (0.6.3)
|
||||||
rack (>= 1.0)
|
rack (>= 1.0)
|
||||||
@@ -194,7 +196,6 @@ GEM
|
|||||||
ruby-graphviz (~> 1.2)
|
ruby-graphviz (~> 1.2)
|
||||||
rails-html-sanitizer (1.0.4)
|
rails-html-sanitizer (1.0.4)
|
||||||
loofah (~> 2.2, >= 2.2.2)
|
loofah (~> 2.2, >= 2.2.2)
|
||||||
raindrops (0.19.0)
|
|
||||||
rake (12.3.0)
|
rake (12.3.0)
|
||||||
rb-fsevent (0.10.3)
|
rb-fsevent (0.10.3)
|
||||||
rb-inotify (0.9.10)
|
rb-inotify (0.9.10)
|
||||||
@@ -244,9 +245,6 @@ GEM
|
|||||||
unf (0.1.4)
|
unf (0.1.4)
|
||||||
unf_ext
|
unf_ext
|
||||||
unf_ext (0.0.7.5)
|
unf_ext (0.0.7.5)
|
||||||
unicorn (5.4.0)
|
|
||||||
kgio (~> 2.6)
|
|
||||||
raindrops (~> 0.7)
|
|
||||||
webrick (1.4.2)
|
webrick (1.4.2)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
@@ -258,9 +256,10 @@ DEPENDENCIES
|
|||||||
bcrypt
|
bcrypt
|
||||||
better_errors
|
better_errors
|
||||||
binding_of_caller
|
binding_of_caller
|
||||||
capistrano-bundler (~> 1.1.3)
|
capistrano-bundler
|
||||||
capistrano-rails (~> 1.1.2)
|
capistrano-puma
|
||||||
capistrano-rbenv (~> 2.0)
|
capistrano-rails
|
||||||
|
capistrano-rbenv
|
||||||
highlight_js-rails!
|
highlight_js-rails!
|
||||||
hirb
|
hirb
|
||||||
jquery-rails
|
jquery-rails
|
||||||
@@ -268,6 +267,7 @@ DEPENDENCIES
|
|||||||
kaminari!
|
kaminari!
|
||||||
mail-gpg!
|
mail-gpg!
|
||||||
mysql2
|
mysql2
|
||||||
|
puma
|
||||||
rails!
|
rails!
|
||||||
rails-erd
|
rails-erd
|
||||||
rb-readline
|
rb-readline
|
||||||
@@ -279,7 +279,6 @@ DEPENDENCIES
|
|||||||
strip_attributes
|
strip_attributes
|
||||||
tzinfo-data
|
tzinfo-data
|
||||||
uglifier
|
uglifier
|
||||||
unicorn
|
|
||||||
webrick
|
webrick
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
|
|||||||
4
config/puma.rb
Normal file
4
config/puma.rb
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
workers = 2
|
||||||
|
threads 2, 4
|
||||||
|
|
||||||
|
preload_app!
|
||||||
Reference in New Issue
Block a user