Danny
Danny

Reputation: 1015

Laravel Envoy doesn't complete basic task on Windows

So I tried to use Laravel Envoy for the first time and run the example task as described in the documentation.

@servers(['web' => 'redacted-user@redacted-ip'])

@task('foo', ['on' => 'web'])
ls -la
@endtask

envoy run foo
[✗] This task did not complete successfully on one of your servers.

I tried newer PHP binaries from the official website but that didn't fix it. When I do envoy ssh it works and regular SSH works too with the provided credentials (I can use user/password or publickey to login).

What could be stopping envoy from connecting and executing the task?

These are my settings:

Upvotes: 0

Views: 1011

Answers (2)

Anthony
Anthony

Reputation: 2050

Here are some options for those who want to run Envoy on Windows:

  1. Install Windows Subsystem for Linux (WSL) and then Envoy via the WSL command line. It should run natively on Windows. As WSL has a feature to execute Linux binaries from within the Windows command line. You could also run it from the WSL command line.
  2. Use Homestead for the project, then vagrant ssh into the Homestead virtual machine. Homestead has Envoy preinstalled.
  3. Similar to using Homestead, you could just use any other virtual machine of your choice.
  4. Use an alternative to Envoy that has support for Windows, such as Deployer

Upvotes: 1

George Hanson
George Hanson

Reputation: 3040

In the documentation it says it only supports Mac and Linux. You are on Windows so that is likely why it is not working.

Currently, Envoy only supports the Mac and Linux operating systems.

https://laravel.com/docs/5.8/envoy#introduction

Upvotes: 1

Related Questions