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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6eb644fcdaec53e8e3ebce48475fc4f243ea2020
4
- data.tar.gz: 6b69bbdd47a95feda1a81b8b0f9ec7e51a50e484
3
+ metadata.gz: be0a48fb8c7d3428f59df64f0e565ce30c84476d
4
+ data.tar.gz: cc2cd3f4d8115cd23890f4932a4f25ac96f2d039
5
5
  SHA512:
6
- metadata.gz: ddfed5e6276d1f59413ffed67d4e13e7d547a89f1cb11fdcb133253b773b59f0cb2b9c7b37b1449a560da2a2bfb5fe5a4050f0546c0654fdcd548e54b839c084
7
- data.tar.gz: d401ebb8b19ce9e52ef8c301902ddecd776aa0ee9d5a4b7b12971cfcf489418579b885cf31210ec2ad716eaac87a7aad1c56e889b7290e22ee3ce9350d5c632d
6
+ metadata.gz: 29accd8654c65233ec7dbe1850cab306f84b6bd5a333efce9029117263946cdfbd81acc37cf4e2d10faa3c1bd36fbbac25addc9d5739d92bd7105e6d41285cc6
7
+ data.tar.gz: 45a61ad79f48468dedf3024ac4a9c95775e57e08295372f706e882809ca49c9cee47645801ac9d34725fa3069aa4de7f1d55474894554bc1de2ea2cd70d4a483
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module NodeJS
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-nodejs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ranndom