h2ocube_rails_puma 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/h2ocube_rails_puma.gemspec +3 -3
- data/lib/capistrano/tasks/puma.cap +4 -2
- data/lib/generators/source/puma.rb.erb +6 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 069c801dbb866f1a321bed6d309cb2f8a9793364
|
4
|
+
data.tar.gz: 54f420666e902f62146d1fa364417605e51d1f5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56e0d47169d77cc8635f854337f062f62797a8126d4703c883331d9eaf1974e371ffc3eea6f93e0ab97dc34a2aaf8d9d9e61cc2ceb2c12f560d90b1514c5cab3
|
7
|
+
data.tar.gz: 6c68514391a440f0de601d3bd28b2e73835c2ccf08589ec803d1ed2f517f20418e8b659469fa27609922028f155bed83fe197317797cb2e3dd822ae62d00a0f0
|
data/README.md
CHANGED
data/h2ocube_rails_puma.gemspec
CHANGED
@@ -4,11 +4,11 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'h2ocube_rails_puma'
|
7
|
-
spec.version = '0.0.
|
7
|
+
spec.version = '0.0.7'
|
8
8
|
spec.authors = ['Ben']
|
9
9
|
spec.email = ['ben@zfben.com']
|
10
|
-
spec.description =
|
11
|
-
spec.summary =
|
10
|
+
spec.description = 'Puma plugin for Rails and Capistrano'
|
11
|
+
spec.summary = 'Puma plugin for Rails and Capistrano'
|
12
12
|
spec.homepage = 'https://github.com/h2ocube/h2ocube_rails_puma'
|
13
13
|
spec.license = 'MIT'
|
14
14
|
|
@@ -1,11 +1,13 @@
|
|
1
1
|
set :puma_rb, 'config/puma.rb'
|
2
|
+
set :puma_threads, '0:16'
|
3
|
+
set :puma_workers, '2'
|
2
4
|
|
3
5
|
namespace :puma do
|
4
6
|
desc 'Start puma'
|
5
7
|
task :start do
|
6
8
|
on roles :app do
|
7
9
|
within release_path do
|
8
|
-
execute :bundle, "exec puma -C #{fetch :puma_rb} -b 'unix://#{shared_path}/sockets/puma.sock' --pidfile #{shared_path}/pids/puma.pid -S #{state_path} -e #{fetch :stage} -d"
|
10
|
+
execute :bundle, "exec puma -C #{fetch :puma_rb} -b 'unix://#{shared_path}/sockets/puma.sock' -t #{fetch :puma_threads} -w #{fetch :puma_workers} --pidfile #{shared_path}/pids/puma.pid -S #{state_path} -e #{fetch :stage} -d"
|
9
11
|
end
|
10
12
|
end
|
11
13
|
end
|
@@ -40,7 +42,7 @@ namespace :puma do
|
|
40
42
|
desc 'Cold Restart puma'
|
41
43
|
task :cold_restart do
|
42
44
|
invoke 'puma:stop'
|
43
|
-
sleep
|
45
|
+
sleep 1
|
44
46
|
invoke 'puma:start'
|
45
47
|
end
|
46
48
|
|
@@ -2,6 +2,10 @@ application_path = File.expand_path('../../', __FILE__)
|
|
2
2
|
|
3
3
|
stdout_redirect "#{application_path}/log/puma.stdout.log", "#{application_path}/log/puma.stderr.log"
|
4
4
|
|
5
|
-
threads 0,1
|
6
|
-
workers 1
|
7
5
|
preload_app!
|
6
|
+
|
7
|
+
on_worker_boot do
|
8
|
+
ActiveSupport.on_load(:active_record) do
|
9
|
+
ActiveRecord::Base.establish_connection
|
10
|
+
end
|
11
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: h2ocube_rails_puma
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: puma
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
-
description:
|
27
|
+
description: Puma plugin for Rails and Capistrano
|
28
28
|
email:
|
29
29
|
- ben@zfben.com
|
30
30
|
executables: []
|
@@ -63,8 +63,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
63
|
version: '0'
|
64
64
|
requirements: []
|
65
65
|
rubyforge_project:
|
66
|
-
rubygems_version: 2.
|
66
|
+
rubygems_version: 2.4.8
|
67
67
|
signing_key:
|
68
68
|
specification_version: 4
|
69
|
-
summary:
|
69
|
+
summary: Puma plugin for Rails and Capistrano
|
70
70
|
test_files: []
|