capistrano-puma-simple 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/capistrano/puma-simple/version.rb +1 -1
- data/lib/capistrano/tasks/puma.rake +5 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce0900cdafa4f42bd8837d7933626c7defb2d4ac
|
4
|
+
data.tar.gz: c32df8698f0746ff56f7408cac430ffb8fa1cb5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 920d8a534075387e88a674015ec8691f9b8c0486adad5f92ee5550de3954fbef7cc12092c4c98f10a69ba03068c1e0230ce32e5b0ad4f797dee2dbae5b6d5319
|
7
|
+
data.tar.gz: 6c733cf05b3c7893ee1ff8bcbcca672273ef4b82fd45b9e4ba74105afaec702346fb575e8e5257b98a440641368357bf8ddc231bf93688e8edd53ff4a7ec29b8
|
@@ -17,6 +17,8 @@ namespace :load do
|
|
17
17
|
set :puma_worker_timeout, 60
|
18
18
|
set :puma_init_active_record, false
|
19
19
|
set :puma_preload_app, false
|
20
|
+
set :bundle_bins, fetch(:bundle_bins).to_a + %w(puma pumactl)
|
21
|
+
set :rbenv_map_bins, fetch(:rbenv_map_bins).to_a + %w(puma pumactl)
|
20
22
|
end
|
21
23
|
end
|
22
24
|
|
@@ -66,7 +68,7 @@ namespace :puma do
|
|
66
68
|
end
|
67
69
|
within current_path do
|
68
70
|
with rack_env: fetch(:puma_env) do
|
69
|
-
execute :
|
71
|
+
execute :puma, "-C #{fetch(:puma_conf)} --daemon"
|
70
72
|
end
|
71
73
|
end
|
72
74
|
end
|
@@ -82,7 +84,7 @@ namespace :puma do
|
|
82
84
|
with rack_env: fetch(:puma_env) do
|
83
85
|
if test "[ -f #{fetch(:puma_pid)} ]"
|
84
86
|
if test :kill, "-0 $( cat #{fetch(:puma_pid)} )"
|
85
|
-
execute :
|
87
|
+
execute :pumactl, "-S #{fetch(:puma_state)} -F #{fetch(:puma_conf)} #{command}"
|
86
88
|
else
|
87
89
|
# delete invalid pid file , process is not running.
|
88
90
|
execute :rm, fetch(:puma_pid)
|
@@ -107,7 +109,7 @@ namespace :puma do
|
|
107
109
|
with rack_env: fetch(:puma_env) do
|
108
110
|
if (test "[ -f #{fetch(:puma_pid)} ]") && (test :kill, "-0 $( cat #{fetch(:puma_pid)} )")
|
109
111
|
# NOTE pid exist but state file is nonsense, so ignore that case
|
110
|
-
execute :
|
112
|
+
execute :pumactl, "-S #{fetch(:puma_state)} -F #{fetch(:puma_conf)} #{command}"
|
111
113
|
else
|
112
114
|
# Puma is not running or state file is not present : Run it
|
113
115
|
invoke "puma:start"
|