Questions tagged [laravel-envoy]

Laravel Envoy provides a clean, minimal syntax for defining common tasks you run on your remote servers. Using a Blade style syntax, you can easily setup tasks for deployment, Artisan commands, and more.

Laravel Envoy is a tool for executing common tasks you run on your remote servers. Using Blade style syntax, you can easily setup tasks for deployment, Artisan commands, and more. Currently, Envoy only supports the Mac and Linux operating systems. However, Windows support is achievable using WSL2.

72 questions
1
vote
1 answer

Laravel Envoy Error: Too many arguments, expected arguments "command"

I started using Envoy. But I'm getting some errors @servers(['web' => '127.0.0.1']) @story('deploy') git artisan @endstory @task('git') git pull origin master @endtask @task('artisan') php artisan migrate @endtask This works fine…
Sajid Javed
  • 452
  • 8
  • 14
1
vote
1 answer

I provide password in envoy script but it prompts to enter password manually

With laravel 5.8 envoy command I deploy on remote server and I set password in command line, like: envoy run Hostels2Deploy --lardeployer_password=111 --app_version=0.105a and envoy file: @setup $server_login_user= 'lardeployer'; …
mstdmstd
  • 2,195
  • 17
  • 63
  • 140
1
vote
1 answer

In envoy script console command raise error

With laravel 5.8 envoy command I deploy my changes on server and need to run some console command and I my script I got error Could not open input file: artisan on the second console command In my script : @task( 'update_symlinks' ) ln -nfs {{…
Petro Gromovo
  • 1,755
  • 5
  • 33
  • 91
1
vote
1 answer

Laravel Envoy This task did not complete successfully on one of your servers

I have a laravel 5.7 project in which I would like to deploy to the server with laravel envoy. If I run envoy run deploy I get the following error: [✗] This task did not complete successfully on one of your servers. I tried running this from…
Graham
  • 1,850
  • 4
  • 21
  • 41
1
vote
0 answers

Is it possible to use https access to bitbucket rep with envoy in Laravel 5.7 app?

Is it possible to use https access to bitbucket rep with envoy in Laravel 5.7 app? Running envoy command I got error: $ envoy run deploy deployeruser@138.68.107.4's password: [deployeruser@138.68.107.4]: Cloning into…
Petro Gromovo
  • 1,755
  • 5
  • 33
  • 91
1
vote
1 answer

Laravel Artisan & Composer commands on deployment

What Composer and Artisan commands are necessary to run during deployment of a brand new Laravel application? Per Laravel 5.7 documentation, are these the only essential commands? composer install --optimize-autoloader --no-dev php artisan…
Karl Hill
  • 12,937
  • 5
  • 58
  • 95
1
vote
1 answer

Laravel 5.6 envoy error when called from controller

I'm trying to use envoy from laravel to call some scripts on my server. Right now I'm doing it with a virtual machine installed on my mac. I'm trying to run my envoy scripts from a controller as follow: function __construct() { $command =…
killstreet
  • 1,251
  • 2
  • 15
  • 37
1
vote
2 answers

Laravel Envoy Permissions?

Ok, so I am trying to call Envoy from a controller function but running into permissions problems that nobody else seems to be getting? I have installed envoy globally and done a symlink to /usr/local/bin so that my site can see it. But I cannot…
DommT
  • 155
  • 1
  • 12
1
vote
1 answer

Running Laravel Envoy from Jenkins

I have a deployment script running from Envoy on a Laravel project. The script is a heavily modified version of https://github.com/nickfan/envoy-deployscript. Deployments are run locally to multiple servers and Envoy handles this well. However, I…
DrKHunter
  • 424
  • 5
  • 15
1
vote
0 answers

laravel envoy on multiple server

I seem to misunderstand somethings from the envoy docs. If I have 10 php servers and I have some tasks that should delete some files from all the servers and I have this simplified code: @servers(['web-1' => '1.1.1.1', 'web-2' =>…
Amir Bar
  • 3,007
  • 2
  • 29
  • 47
1
vote
1 answer

Laravel: Error while using envoy in Controller

I try to start "envoy run..." in a controller (or later a Job). Here is my code so far: https://laravel.io/bin/Xy207 All I get is this error: ProcessFailedException in ForgeController.php line 28: The command "~/.composer/vendor/bin/envoy run…
kay899
  • 75
  • 1
  • 8
1
vote
1 answer

Cannot access MYSQL using inline password

I cant connect to mysql if I do this: mysql -ualan -psecret It returns: ERROR 1045 (28000): Access denied for user 'alan'@'localhost' (using password: YES) But if I do: mysql -ualan -p And then I enter the password it works. I NEED to use the…
Alan
  • 2,559
  • 4
  • 32
  • 53
1
vote
1 answer

Laravel 5.1 deployement with envoy ERROR

I am trying to deploy my laravel project with envoy. Everytime I run envoy run deploy I get this error message: [deploybot@"serversip"]: PHP Fatal error: Uncaught exception 'UnexpectedValueException' with message 'The stream or file…
Moussa Chaabar
  • 501
  • 6
  • 18
0
votes
0 answers

Linux Symlink command between two directories adds a directory to link path

so I have a server with Linux to which I deploy staging Laravel application from Gitlab using the Gitlab Envoy guide The structure of folders is as follows: /public_html/ main folder where user is redirected to /releases/ folder with all…
Lukas Grofcik
  • 457
  • 1
  • 3
  • 15
0
votes
0 answers

How do I get the environment I'm 'on' in Laravel Envoy?

I want to use Laravel Envoy to deploy my Laravel app, but my staging server has the Laravel project in a different path to where it is on the Production server. So I've got something like this in Envoy.blade.php @servers(['staging' =>…
Brendan White
  • 435
  • 2
  • 8
  • 17