capistrano-websocket-rails 0.1.4 → 0.1.5
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: 037c3b1c882247f15e79af1fb22a343f87bcf98a
|
4
|
+
data.tar.gz: 21911c31285a74df594606f8034199ec1aad0e2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7300b0f4352c96f3f9c2052ddf58cd8c824706d0e4c8d994d9dd545a04874ec00f3a9e365079b3df2cb4fb49e6350c3566efa35c51d996b8e223c8fd524f901c
|
7
|
+
data.tar.gz: e15c301121c1b4b106500991c7106e22a85c3b49c4fcbf69015235a87b0b4fe26c14cd38da1400c83f52dd78377e6dd0cac313743d219c76e4ced8b6063e4599
|
@@ -1,8 +1,5 @@
|
|
1
1
|
namespace :load do
|
2
|
-
set :websocket_rails_pid, -> {
|
3
|
-
puts; puts; puts shared_path; puts; puts
|
4
|
-
puts; puts; puts File.join(shared_path, 'tmp', 'pids', 'websocket_rails.pid'); puts; puts
|
5
|
-
File.join(shared_path, 'tmp', 'pids', 'websocket_rails.pid') }
|
2
|
+
set :websocket_rails_pid, -> { shared_path.join 'tmp', 'pids', 'websocket_rails.pid' }
|
6
3
|
set :websocket_rails_env, -> { fetch :rack_env, fetch(:rails_env, fetch(:stage)) }
|
7
4
|
set :websocket_rails_role, -> { :app }
|
8
5
|
end
|
@@ -35,8 +32,7 @@ namespace :websocket_rails do
|
|
35
32
|
desc 'Restart websocket-rails server'
|
36
33
|
task :restart_server do
|
37
34
|
on roles(fetch(:websocket_rails_role)), in: :sequence, wait: 5 do
|
38
|
-
within(
|
39
|
-
within(release_path) { start_server }
|
35
|
+
within(release_path) { restart_server }
|
40
36
|
end
|
41
37
|
end
|
42
38
|
|
@@ -54,6 +50,7 @@ namespace :websocket_rails do
|
|
54
50
|
info 'Websocket-rails server not running.'
|
55
51
|
end
|
56
52
|
end
|
53
|
+
def restart_server; stop_server; start_server end
|
57
54
|
def pid_file_exists?
|
58
55
|
test "[ -f #{fetch(:websocket_rails_pid)} ]"
|
59
56
|
end
|