capistrano3-puma 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/capistrano/puma/version.rb +1 -1
- data/lib/capistrano/tasks/puma.cap +14 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f4e2a7e6da79b8288ad61281abffe71ac11d158
|
4
|
+
data.tar.gz: 6f5d84214b223319ab8f28e67daec049885cf1a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bf87fa33238e2c581f6ae1c736e93fc7c5e6ccb419863f7bb778a4d8d1db1eccc82308e1fe0b93a9e44b45ab121a60ac5375fa61df2190a51023206b3123b15
|
7
|
+
data.tar.gz: b7084811e7f7193286bf28579f50db5ba91e0c49ce7c3c6c8cc12c4f3114ac6a29f3d7073b1efd2addc01b7d35250adb53b1b978e0d80d13474bd6e918b187c4
|
data/README.md
CHANGED
@@ -67,6 +67,7 @@ Ensure that the following directories are shared (via ``linked_dirs``):
|
|
67
67
|
tmp/pids tmp/sockets log
|
68
68
|
|
69
69
|
## Changelog
|
70
|
+
- 0.6.1: added :puma_default_hooks, you can turn off the automatic hooks by setting it false
|
70
71
|
- 0.6.0: Remove `daemonize true` from default puma.rb file. Explicitly pass `--daemon` flag when needed.
|
71
72
|
- 0.5.1: Added worker_timeout option
|
72
73
|
- 0.5.0: Bugs fixes
|
@@ -1,5 +1,6 @@
|
|
1
1
|
namespace :load do
|
2
2
|
task :defaults do
|
3
|
+
set :puma_default_hooks, -> { true }
|
3
4
|
set :puma_role, :app
|
4
5
|
set :puma_env, -> { fetch(:rack_env, fetch(:rails_env, fetch(:stage))) }
|
5
6
|
# Configure "min" to be the minimum number of threads to use to answer
|
@@ -22,6 +23,12 @@ namespace :load do
|
|
22
23
|
end
|
23
24
|
end
|
24
25
|
|
26
|
+
namespace :deploy do
|
27
|
+
before :starting, :check_puma_hooks do
|
28
|
+
invoke 'puma:add_default_hooks' if fetch(:puma_default_hooks)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
25
32
|
namespace :puma do
|
26
33
|
|
27
34
|
desc 'Setup Puma config file'
|
@@ -96,7 +103,7 @@ namespace :puma do
|
|
96
103
|
end
|
97
104
|
end
|
98
105
|
end
|
99
|
-
|
106
|
+
|
100
107
|
|
101
108
|
task :smart_restart do
|
102
109
|
if puma_workers.to_i > 1
|
@@ -105,7 +112,7 @@ namespace :puma do
|
|
105
112
|
invoke 'puma:restart'
|
106
113
|
end
|
107
114
|
end
|
108
|
-
|
115
|
+
|
109
116
|
|
110
117
|
|
111
118
|
def puma_workers
|
@@ -138,4 +145,9 @@ namespace :puma do
|
|
138
145
|
end
|
139
146
|
end
|
140
147
|
|
148
|
+
task :add_default_hooks do
|
149
|
+
after 'deploy:check', 'puma:check'
|
150
|
+
after 'deploy:finished', 'puma:smart_restart'
|
151
|
+
end
|
152
|
+
|
141
153
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano3-puma
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abdelkader Boudih
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|