capistrano-nodejs 0.1.0 → 0.2.0
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 +25 -0
- 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: be0a48fb8c7d3428f59df64f0e565ce30c84476d
|
4
|
+
data.tar.gz: cc2cd3f4d8115cd23890f4932a4f25ac96f2d039
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29accd8654c65233ec7dbe1850cab306f84b6bd5a333efce9029117263946cdfbd81acc37cf4e2d10faa3c1bd36fbbac25addc9d5739d92bd7105e6d41285cc6
|
7
|
+
data.tar.gz: 45a61ad79f48468dedf3024ac4a9c95775e57e08295372f706e882809ca49c9cee47645801ac9d34725fa3069aa4de7f1d55474894554bc1de2ea2cd70d4a483
|
@@ -2,6 +2,7 @@ namespace :config do
|
|
2
2
|
task :set_paths do
|
3
3
|
SSHKit.config.command_map[:bower] = File.join(release_path, 'node_modules', 'bower', 'bin', 'bower')
|
4
4
|
SSHKit.config.command_map[:grunt] = File.join(release_path, 'node_modules', 'grunt-cli', 'bin', 'grunt')
|
5
|
+
SSHKit.config.command_map[:forever] = File.join(release_path, 'node_modules', 'forever', 'bin', 'forever')
|
5
6
|
end
|
6
7
|
end
|
7
8
|
|
@@ -42,4 +43,28 @@ namespace :grunt do
|
|
42
43
|
end
|
43
44
|
end
|
44
45
|
end
|
46
|
+
end
|
47
|
+
|
48
|
+
namespace :deploy do
|
49
|
+
task :start do
|
50
|
+
on roles(:app) do
|
51
|
+
within release_path do
|
52
|
+
execute :forever, "start #{fetch(:forever_script, "./config/forever.json")}"
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
task :stop do
|
57
|
+
on roles(:app) do
|
58
|
+
within release_path do
|
59
|
+
execute :forever, "stop #{fetch(:forever_script, "./config/forever.json")}"
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
task :restart do
|
64
|
+
on roles(:app), in: :sequence, wait: 5 do
|
65
|
+
within release_path do
|
66
|
+
execute :forever, "restart #{fetch(:forever_script, "./config/forever.json")}"
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
45
70
|
end
|