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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3948b50aa80a7a71cedd8b0359bdfd13a743e24e
4
- data.tar.gz: 7957a54a2a926619a77eda82e9b62cb56a240162
3
+ metadata.gz: e7c616ffa44d4344d042c2487f912c5aa8522594
4
+ data.tar.gz: 5b4db703a31b47b68302df6354c098ac4be18b65
5
5
  SHA512:
6
- metadata.gz: 568f913955c99928818b74eccdf4ac5339d4e847da5d0aae2e520491be170703a7c59ea4c95bd5a41dd1da809cad26a6a736354fb761919a07ba06ac60ee3cbb
7
- data.tar.gz: ebca51a4333553940eadde86c4d9e49e2291e2adedad97dc8e0a60b386388e7c35e1ec372f196ff80153aa7c58166bab2447a7ef35b5d44e1038becfb7027649
6
+ metadata.gz: 91487ae36bfd19290410f805e01ee3d19b2238de711f14161a67c835074deae058768d1c61dcb32f6726434fce001fc0366984172383e75f33870eac77118a56
7
+ data.tar.gz: 0457a808f2f4c5efcc0d4d0536948d3f2d8e63c2de3cc65a379e2b225506d7ff5458b27e18aba19e74196a025aebeda9d5eabc62ded521420a5f4cc5389a1116
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module NodeJS
3
- VERSION = "0.3.2"
3
+ VERSION = "0.4.2"
4
4
  end
5
5
  end
@@ -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
- 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")}"
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
- 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")}"
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
- 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")}"
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
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.3.2
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ranndom