1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Fix gateway to actually increment local_port if a port is in use, so that multiple capistrano instances can run at the same time

git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@6008 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jamis Buck 2007-01-22 15:10:32 +00:00
parent b4d37439e3
commit 26a6cc7ea2
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,7 @@
*SVN*
* Fix gateway to actually increment local_port if a port is in use, so that multiple capistrano instances can run at the same time [Mark Imbriaco]
* Refactor the permissions tweaking in update_code to a separate task so that people on shared hosts can override it as necessary [jaw6]
* Set umask during the setup task, so that intermediate directories are created with the proper permissions [NeilW]

View file

@ -80,7 +80,7 @@ module Capistrano
connection = SSH.connect('127.0.0.1', @config, local_port)
@config.logger.trace "connection to #{server} via gateway established"
rescue Errno::EADDRINUSE
port = next_port
local_port = next_port
retry
rescue Exception => e
puts e.class.name