Skip to content

Error in update_code.php on line 54 #2640

Description

@rudenko-programmer
  • Deployer version: v7.0.0-beta.24
  • Deployment OS: Ubuntu 20.04.3 LTS

deploy.php

namespace Deployer;
require 'recipe/common.php';
// Config
set('application', 'application');
set('repository', 'git@rep-1.github.com:name/rep-1.git');
set('git_tty', true);
set('branch', 'master');
set('keep_releases', 3);
set('ssh_multiplexing', false);

host('host IP')
         ->set('remote_user', 'user')
        ->set('deploy_path', 'deploy_path')
	->set('identity_file', '~/.ssh/deployerkey')
	->set('config_file', '~/.ssh/config')
	->set('stage', 'production') 
	->set('forward_agent', true);

task('deploy', [
	'deploy:prepare',
	'deploy:publish'
]);
after('deploy:failed', 'deploy:unlock');

~/.ssh/config

Host rep-1.github.com
        Hostname github.com
        User git
        IdentityFile=~/.ssh/rep1
        IdentitiesOnly yes

Host rep-2.github.com
        Hostname github.com
        User git
        IdentityFile=~/.ssh/rep-2
        IdentitiesOnly yes

Line with error

54: run("ssh-keyscan -H $repositoryHostname >> ~/.ssh/known_hosts");

I get error update_code.php on line 54 when I try to realize Using multiple repositories on one server with GitHub

I solve this problem when I commented line 54 in source code but this is not a good idea as for me.

Maybe we can add additional params to config file if we need to solve this problem or maybe somthing else. At the moment unfortunately I don't have good idea.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions