We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When calling upload()rsync fails because it tries to connect via port 22
upload()
deploy.php
<?php namespace Deployer; require 'recipe/common.php'; // Configuration set('repository', '[email protected]'); set('git_tty', false); // [Optional] Allocate tty for git on first deployment set('shared_files', []); set('shared_dirs', []); set('writable_dirs', []); set('allow_anonymous_stats', true); // Hosts host('myhost') ->stage('production') ->user('myuser') ->port(12345) ->set('deploy_path', '/var/www'); // Tasks task('deploy:build_ref', function () { writeln('<info>Uploading BUILD_REF file</info>'); upload('./BUILD_REF', '{{release_path}}/BUILD_REF'); })->desc('Upload BUILD_REF file'); task('deploy', [ 'deploy:prepare', 'deploy:lock', 'deploy:release', 'deploy:update_code', 'deploy:shared', 'deploy:build_ref', 'deploy:writable', //'deploy:vendors', 'deploy:clear_paths', 'deploy:symlink', 'deploy:unlock', 'cleanup', 'success', ])->desc('Deploy project'); // [Optional] if deploy fails automatically unlock. after('deploy:failed', 'deploy:unlock');
[Symfony\Component\Process\Exception\ProcessFailedException] The command "rsync -azP ./BUILD_REF myuser@myserver:/var/www/releases/4/BUILD_REF" failed. Exit Code: 255(Unknown error) Working directory: /home/depoyer/ Output: ================ Error Output: ================ ssh: connect to host myserver port 22: Connection refused rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) at io.c(600) [sender=3.0.6]
The text was updated successfully, but these errors were encountered:
Fixed. Please check master.
Sorry, something went wrong.
No branches or pull requests
Description
When calling
upload()
rsync fails because it tries to connect via port 22Steps to reproduce
Content of
deploy.php
Output log
The text was updated successfully, but these errors were encountered: