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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 137ac5b8058b0b1a572848b09f355043c07c1f5c
4
- data.tar.gz: 2838d2a10b74fd86758e5d91fd5fbc385b818cae
3
+ metadata.gz: 069c801dbb866f1a321bed6d309cb2f8a9793364
4
+ data.tar.gz: 54f420666e902f62146d1fa364417605e51d1f5a
5
5
  SHA512:
6
- metadata.gz: 5931cbf11dd3957cb859f40036d78aedc2894f31e83357c833bd03bd153ce662068f3bacc4ef089e3221e2165cb5ca620f83862f3715734db9a5ad10b29c5e3c
7
- data.tar.gz: fda89d8fc00f0a0d48e0fb5e7e40e51ed68f3d3f8a04b12630716542d5cfae9e7778eccfebeaf824d0982de5572904371eebd443f82f568b7727fedc2aa39145
6
+ metadata.gz: 56e0d47169d77cc8635f854337f062f62797a8126d4703c883331d9eaf1974e371ffc3eea6f93e0ab97dc34a2aaf8d9d9e61cc2ceb2c12f560d90b1514c5cab3
7
+ data.tar.gz: 6c68514391a440f0de601d3bd28b2e73835c2ccf08589ec803d1ed2f517f20418e8b659469fa27609922028f155bed83fe197317797cb2e3dd822ae62d00a0f0
data/README.md CHANGED
@@ -26,6 +26,11 @@ Or install it yourself as:
26
26
  # Capfile
27
27
  require 'capistrano/puma'
28
28
 
29
+ # deploy.rb
30
+ set :puma_rb, 'config/puma.rb'
31
+ set :puma_threads, '0:16'
32
+ set :puma_workers, '2'
33
+
29
34
  Puma specific tasks for Capistrano v3:
30
35
 
31
36
  cap puma:start
@@ -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.6'
7
+ spec.version = '0.0.7'
8
8
  spec.authors = ['Ben']
9
9
  spec.email = ['ben@zfben.com']
10
- spec.description = %q{Just a collection for development gems}
11
- spec.summary = %q{Just a collection for development gems}
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 3
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.6
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: 2014-10-09 00:00:00.000000000 Z
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: Just a collection for development gems
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.2.2
66
+ rubygems_version: 2.4.8
67
67
  signing_key:
68
68
  specification_version: 4
69
- summary: Just a collection for development gems
69
+ summary: Puma plugin for Rails and Capistrano
70
70
  test_files: []