capistrano-nodejs 0.4.2 → 0.4.3

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: e7c616ffa44d4344d042c2487f912c5aa8522594
4
- data.tar.gz: 5b4db703a31b47b68302df6354c098ac4be18b65
3
+ metadata.gz: 1e97ac2ea316992901354b77b2b05db3f79c8131
4
+ data.tar.gz: 89d68699b7b84f518d76f143d422b8fe32666c6b
5
5
  SHA512:
6
- metadata.gz: 91487ae36bfd19290410f805e01ee3d19b2238de711f14161a67c835074deae058768d1c61dcb32f6726434fce001fc0366984172383e75f33870eac77118a56
7
- data.tar.gz: 0457a808f2f4c5efcc0d4d0536948d3f2d8e63c2de3cc65a379e2b225506d7ff5458b27e18aba19e74196a025aebeda9d5eabc62ded521420a5f4cc5389a1116
6
+ metadata.gz: c9164ef50454973cc6500142a864901ca55a051d4a8a945ef5c29c2863db0b675ca915119686adaf39699ca4c268a65a197ae6010521a68c513f6cfc21710b99
7
+ data.tar.gz: c2bef8506dff0e4f8b25c9b53cf55e566dd813966c387379fca1bfe0a5e23ccfc8f591f8bb4531c5890f8bb0cb6eb14bc98087341b509d246ac5c2da3fefb1d4
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module NodeJS
3
- VERSION = "0.4.2"
3
+ VERSION = "0.4.3"
4
4
  end
5
5
  end
@@ -48,9 +48,9 @@ end
48
48
  namespace :deploy do
49
49
  task :start do
50
50
  invoke 'config:set_paths'
51
- on roles(:app) do
51
+ on roles(:app) do |host|
52
52
  within release_path do
53
- with PORT: host.app_port || 8080 do
53
+ with PORT: host.properties.app_port || 8080 do
54
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
55
  end
56
56
  end
@@ -58,9 +58,9 @@ namespace :deploy do
58
58
  end
59
59
  task :stop do
60
60
  invoke 'config:set_paths'
61
- on roles(:app) do
61
+ on roles(:app) do |host|
62
62
  within release_path do
63
- with PORT: host.app_port || 8080 do
63
+ with PORT: host.properties.app_port || 8080 do
64
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
65
  end
66
66
  end
@@ -70,7 +70,7 @@ namespace :deploy do
70
70
  invoke 'config:set_paths'
71
71
  on roles(:app), in: :sequence, wait: 5 do |host|
72
72
  within release_path do
73
- with PORT: host.app_port || 8080 do
73
+ with PORT: host.properties.app_port || 8080 do
74
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
75
  end
76
76
  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.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ranndom