capistrano-nodejs 0.3.2 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano/nodejs/version.rb +1 -1
- data/lib/capistrano/tasks/nodejs.rake +10 -4
- 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: e7c616ffa44d4344d042c2487f912c5aa8522594
|
4
|
+
data.tar.gz: 5b4db703a31b47b68302df6354c098ac4be18b65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91487ae36bfd19290410f805e01ee3d19b2238de711f14161a67c835074deae058768d1c61dcb32f6726434fce001fc0366984172383e75f33870eac77118a56
|
7
|
+
data.tar.gz: 0457a808f2f4c5efcc0d4d0536948d3f2d8e63c2de3cc65a379e2b225506d7ff5458b27e18aba19e74196a025aebeda9d5eabc62ded521420a5f4cc5389a1116
|
@@ -50,7 +50,9 @@ namespace :deploy do
|
|
50
50
|
invoke 'config:set_paths'
|
51
51
|
on roles(:app) do
|
52
52
|
within release_path do
|
53
|
-
|
53
|
+
with PORT: host.app_port || 8080 do
|
54
|
+
execute :forever, "start #{fetch(:forever_options, ["-l logs/forever.log", "-o logs/stdout.log", "-e logs/stderr.log", "--spinSleepTime 10000", "--minUptime 1000"]).join(" ")} #{fetch(:forever_script, "./config/forever.json")}"
|
55
|
+
end
|
54
56
|
end
|
55
57
|
end
|
56
58
|
end
|
@@ -58,15 +60,19 @@ namespace :deploy do
|
|
58
60
|
invoke 'config:set_paths'
|
59
61
|
on roles(:app) do
|
60
62
|
within release_path do
|
61
|
-
|
63
|
+
with PORT: host.app_port || 8080 do
|
64
|
+
execute :forever, "stop #{fetch(:forever_options, ["-l logs/forever.log", "-o logs/stdout.log", "-e logs/stderr.log", "--spinSleepTime 10000", "--minUptime 1000"]).join(" ")} #{fetch(:forever_script, "./config/forever.json")}"
|
65
|
+
end
|
62
66
|
end
|
63
67
|
end
|
64
68
|
end
|
65
69
|
task :restart do
|
66
70
|
invoke 'config:set_paths'
|
67
|
-
on roles(:app), in: :sequence, wait: 5 do
|
71
|
+
on roles(:app), in: :sequence, wait: 5 do |host|
|
68
72
|
within release_path do
|
69
|
-
|
73
|
+
with PORT: host.app_port || 8080 do
|
74
|
+
execute :forever, "restart #{fetch(:forever_options, ["-l logs/forever.log", "-o logs/stdout.log", "-e logs/stderr.log", "--spinSleepTime 10000", "--minUptime 1000"]).join(" ")} #{fetch(:forever_script, "./config/forever.json")}"
|
75
|
+
end
|
70
76
|
end
|
71
77
|
end
|
72
78
|
end
|