playframework-capistrano 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -44,7 +44,7 @@ module Capistrano
|
|
|
44
44
|
depend :remote, deploy_to
|
|
45
45
|
targets = find_servers_for_task(current_task)
|
|
46
46
|
failed_targets = targets.map do |target|
|
|
47
|
-
cmd = "ssh #{user}@#{target.host} 'cd #{deploy_to} && ./stop.sh'"
|
|
47
|
+
cmd = "ssh -p #{port} #{user}@#{target.host} 'cd #{deploy_to} && ./stop.sh'"
|
|
48
48
|
target.host unless system cmd
|
|
49
49
|
end.compact
|
|
50
50
|
raise "Stopping #{application} failed on #{failed_targets.join(',')}" if failed_targets.any?
|
|
@@ -53,7 +53,7 @@ module Capistrano
|
|
|
53
53
|
task :start_prod do
|
|
54
54
|
targets = find_servers_for_task(current_task)
|
|
55
55
|
failed_targets = targets.map do |target|
|
|
56
|
-
cmd = "ssh #{user}@#{target.host} 'cd #{deploy_to} && ./start.sh -Dconfig.resource=#{prod_conf}'"
|
|
56
|
+
cmd = "ssh -p #{port} #{user}@#{target.host} 'cd #{deploy_to} && ./start.sh -Dconfig.resource=#{prod_conf}'"
|
|
57
57
|
target.host unless system cmd
|
|
58
58
|
end.compact
|
|
59
59
|
raise "Starting #{application} failed on #{failed_targets.join(',')}" if failed_targets.any?
|
|
@@ -62,7 +62,7 @@ module Capistrano
|
|
|
62
62
|
task :start_dev do
|
|
63
63
|
targets = find_servers_for_task(current_task)
|
|
64
64
|
failed_targets = targets.map do |target|
|
|
65
|
-
cmd = "ssh #{user}@#{target.host} 'cd #{deploy_to} && ./start.sh'"
|
|
65
|
+
cmd = "ssh -p #{port} #{user}@#{target.host} 'cd #{deploy_to} && ./start.sh'"
|
|
66
66
|
target.host unless system cmd
|
|
67
67
|
end.compact
|
|
68
68
|
raise "Starting #{application} failed on #{failed_targets.join(',')}" if failed_targets.any?
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: playframework-capistrano
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-05-
|
|
12
|
+
date: 2013-05-05 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: capistrano
|