capistrano-websocket-rails 0.1.2 → 0.1.3
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: 2a29d109295924fc68cdbda110c0f2e9b3152a35
|
4
|
+
data.tar.gz: bf054866215fa70d8672c046031777ebf7e5ed21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0799d2b93b27da27a502222dda9e19990af9f220a74ee77911bcc502a08810cb1bafb219f13b61ef3d681167494c44955c81830e81b6c5e5d8267fe9a0fc9492
|
7
|
+
data.tar.gz: d9bfb846a4280a87a420b014229878cde2f5ce2a13615b485d7c0da2fd83ea010fb03bec373458d827fe9cc848d6dcf0c4b2c2de9d4d8eacda2ea76a2f06a082
|
@@ -5,11 +5,11 @@ namespace :load do
|
|
5
5
|
end
|
6
6
|
|
7
7
|
namespace :deploy do
|
8
|
-
before :starting, :stop_websocket_server do
|
9
|
-
|
10
|
-
end
|
8
|
+
# before :starting, :stop_websocket_server do
|
9
|
+
# invoke 'websocket_rails:stop_server'
|
10
|
+
# end
|
11
11
|
after :publishing, :start_websocket_server do
|
12
|
-
invoke 'websocket_rails:
|
12
|
+
invoke 'websocket_rails:restart_server'
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
@@ -29,6 +29,14 @@ namespace :websocket_rails do
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
+
desc 'Restart websocket-rails server'
|
33
|
+
task :restart_server do
|
34
|
+
on roles(fetch(:websocket_rails_role)), in: :sequence, wait: 5 do
|
35
|
+
within(current_path) { stop_server }
|
36
|
+
within(release_path) { start_server }
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
32
40
|
def start_server
|
33
41
|
info 'Starting websocket-rails server...'
|
34
42
|
run_rake_command! 'start_server'
|