Skip to content

Multiple host patterns  #230

Closed
Closed
@aleksandrpnshkn

Description

@aleksandrpnshkn
  • Envoy Version: 2.7.0
  • Laravel Version: 8.64.0
  • PHP Version: 8.0.11

Description:

I have multiple projects on a server. It is convenient to me to use multipattern feature in ssh config like:

Host project1.stage project2.stage
	HostName IP_ADDRESS
	...

From the ssh_config(5) man page:

Host   ... 
       If more than one pattern is provided, they should be separated by whitespace.
       ...

But envoy fails with this config:

$ vendor/bin/envoy run pwd
[project1.stage project2.stage]:  bash: project2.stage: command not found
[✗] This task did not complete successfully on one of your servers.

Steps To Reproduce:

Configure .ssh/config

Host project1.stage project2.stage
        HostName IP_ADDRESS
        User USERNAME

Create project

laravel new envoy-multiple-hosts
cd envoy-multiple-hosts
composer require laravel/envoy --dev

Create task

nano Envoy.blade.php
@servers(['web' => ['USERNAME@IP_ADDRESS']])

@task('pwd', ['on' => 'web'])
    pwd
@endtask

Run task

vendor/bin/envoy run pwd

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