-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deploy failed on rsync if no port is provided via YAML configuration #1227
Comments
P.S.: I would expect the default SSH port |
I think bug in yaml loading of port value. Should not set null in there no port in inventory. |
Run into something similar - missing identityFile in extra rsync options. Why not using ssh arguments as a replacement for port only logic in upload & download functions: $sshArguments = $host->getSshArguments()->getCliArguments();
if (empty($sshArguments) === false) {
$config['options'] = ["-e 'ssh $sshArguments'"];
} |
@dirx what if user specify everything but not |
Fixes upload / download with optional rsync ssh option #1227
@antonmedv I guess this is fixed by #1240 ? |
True. |
Description
If I do not provide a
port
directive in YAML configuration (did not try in PHP array config), deploy fails on rsync command with error messageBad port '-l'
In the run
ssh
subcommand is-p
parameter, but no port number provided:rsync -azP -e 'ssh -p ' ../dist/ someuser@10.0.0.2:/var/www/web/dev/releases/75
Steps to reproduce
Config your deploy like this:
Content of
deploy.php
Output log
The text was updated successfully, but these errors were encountered: