capistrano-websocket-rails 0.1.7 → 0.1.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a373694affedf17eebcfb64ad35c816b559a704
|
4
|
+
data.tar.gz: a7b0b19236cc3477d2e192ff9f28182230a03e6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e517dd36e5d45d96f123903fc92925143b2cf6bc07e46e248aefb728880b3cd4e9481ed53a8db0d548a3cb17246377326e845497591cd322c82719d86afb409
|
7
|
+
data.tar.gz: f0f4b10c988f9f8de265663d16c5348f62c86c975d37f3800649bf64ae99c3764a4b26b927fa8644fb0276b351b908dd097e2a12e60e62b522b5d58531b5be81
|
@@ -25,9 +25,23 @@ namespace :websocket_rails do
|
|
25
25
|
|
26
26
|
desc 'Stop websocket-rails server'
|
27
27
|
task :stop_server do
|
28
|
-
on roles(fetch(:websocket_rails_role)) do
|
29
|
-
within
|
28
|
+
on roles(fetch(:websocket_rails_role)), in: :sequence, wait: 5 do
|
29
|
+
within current_path do
|
30
|
+
websocket_pid = current_path.join 'tmp', 'pids', 'websocket_rails.pid'
|
31
|
+
if test "[ -f #{websocket_pid} ]"
|
32
|
+
info 'Stopping websocket-rails server...'
|
33
|
+
with rails_env: fetch(:rails_env) do
|
34
|
+
rake 'websocket_rails:stop_server'
|
35
|
+
end
|
36
|
+
info 'Websocket-rails server stopped.'
|
37
|
+
else
|
38
|
+
info 'Websocket-rails server not running.'
|
39
|
+
end
|
40
|
+
end
|
30
41
|
end
|
42
|
+
# on roles(fetch(:websocket_rails_role)) do
|
43
|
+
# within(release_path) { stop_server fetch(:websocket_rails_pid) }
|
44
|
+
# end
|
31
45
|
end
|
32
46
|
|
33
47
|
desc 'Restart websocket-rails server'
|