How to write envoy task on windows ?


  • | 2013 points

    I am writing this

    @servers(['localhost' => '127.0.0.1'])
    
    @task('prepare-dist', ['on' => 'localhost'])
      cd c:\laragon\www\project
    @endtask
    
    @story('deploy')
        prepare-dist
    @endstory
    

    This works. I can succesfully run (using Laragon terminal)

    php vendor\bin\envoy run deploy
    

    But if I add a command after the cd, it not works anymore.

    @task('prepare-dist', ['on' => 'localhost'])
      cd c:\laragon\www\project
      pwd
    @endtask
    

    I got this

    php vendor\bin\envoy run deploy
    [127.0.0.1]: Impossibile trovare il percorso specificato.
    [✗] This task did not complete successfully on one of your servers.

    Where the italian error is translatable as "Impossible to find specified path"

    What is the problem?


  • | 9869 points

    @realtebo according to the documentation: https://laravel.com/docs/8.x/envoy

    Currently, Envoy only supports the Mac and Linux operating systems. However, Windows support is achievable using WSL2.


Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.