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
0
votes
2 answers

Any convenient way to log data into the console and debug Laravel Envoy Blade file

I am trying to debug Laravel Envoy Blade file with @setup configuration block. @setup // some PHP config code here... echo('Deploy started'); @endsetup @servers(['web' => '-q -A ' . $sshOptions . ' "' . $server . '"', 'localhost' =>…
Alex
  • 73
  • 1
  • 8
0
votes
2 answers

Laravel Sail: the input device is not a TTY

I'm using Laravel Envoy and GitLab CI/CD to deploy my application, when i try to run npm install using Sail i get the following error: the input device is not a TTY here's my envoy task: @task('run_compile') {{ logMessage("Running compile...")…
Pezhvak
  • 9,633
  • 7
  • 29
  • 39
0
votes
1 answer

Run Laravel Envoy as root

How can I run Envoy as root? I have a company server which has root access disabled, but I can sudo -s to it. For example, when running git pull through Envoy I am getting: [jenkins]: error: cannot open .git/FETCH_HEAD: Permission denied I have…
Norgul
  • 4,613
  • 13
  • 61
  • 144
0
votes
1 answer

GitLab production deployment - Permission denied (publickey)

This is the first time I’m deploying a Laravel application by using GitLab, or Docker images, and I might just have some confusion regarding the process. I followed this guide: laravel_with_gitlab_and_envoy, and everything seems to work untill…
kaarto
  • 747
  • 1
  • 8
  • 18
0
votes
1 answer

Getting Dotenv values in envoy script in Laravel 7

Typically in my Envoy.blade.php file, I first set up the variables... @include('./vendor/autoload.php'); @setup $dotenv = Dotenv\Dotenv::create(__DIR__); try { $dotenv->load(); …
Karl Hill
  • 12,937
  • 5
  • 58
  • 95
0
votes
1 answer

Laravel envoy error - Call to undefined method

When I run envoy ssh it works however if I try and run envoy run list which is just a ls command, it returns: Uncaught Error: Call to undefined method Symfony\Component\Process\Process::fromShellCommandline() Any ideas what I am doing wrong? I…
m33bo
  • 1,334
  • 1
  • 17
  • 34
0
votes
1 answer

Why not working shell command with variables on envoy?

I have simple Envoy setup. A server: @task('build_todo_list', ['on'=> $server]) echo 'Build todo list' cd {{ $releases_dir }} current=$(ls -td -- * | head -n 1 | cut -d'/' -f1) d=$(echo $current | cut -c 1-8) echo $d …
0
votes
1 answer

Laravel/Envoy TaskContainer line 330 Probleme

I try for Laravel Envoy for deployment easily. But ! Despite my research, I can not find an answer. When I try to put more than one line in a story or macro, it does not handle at all and sends me an error. I have the impression that the…
Slordef
  • 23
  • 1
  • 3
0
votes
1 answer

No access to .ssh/config with envoy

After reinstall Kubuntu I have problems with run envoy with ssh. I set 700 to config file, but got error anyway: $ sudo chmod 700 /home/serge/.ssh/config serge@athoe:/mnt/_work_sdb8/wwwroot/lar/hostels2$ envoy run Hostels2Deploy …
mstdmstd
  • 2,195
  • 17
  • 63
  • 140
0
votes
1 answer

Laravel Envoy - Class config does not exist

I'm currently trying to use Laravel Envoy ( https://laravel.com/docs/5.8/envoy ). It works fine but I would like going further by being able to use Illuminate\Foundation\Application class to be able to inject some dependencies into @setup Envoy…
Shizzen83
  • 3,325
  • 3
  • 12
  • 32
0
votes
2 answers

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…
Danny
  • 986
  • 1
  • 18
  • 42
0
votes
1 answer

Syntax error using Laravel Envoy for deployment

I created an Envoy.blade.php file for deployment, however, when I run envoy run deploy I get a syntax error. I tried to find the error but I don't see it. Envoy.blade.php @setup // user on web-server $user = 'root'; $timezone = 'Europe/Moscow'; //…
Alex
  • 35
  • 2
  • 9
0
votes
1 answer

How to setup deployment to the remote SSH server using pipelines

I'm creating pipeline which will responsible to run deployment script on my remote server when I commit changes to develop branch. I am using laravel envoyer. what I need is just to run envoy run deploy on my remote server after commit. I was using…
0
votes
1 answer

Envoy Laravel run forever

i'm using bitbucket pipeline to deploy and run some artisan command, but there is a problem that make me headache, when artisan command failed, envoy show the error/Exception, but not continue to run next envoy task.it's keep show me the exception…
Khairu Aqsara
  • 1,321
  • 3
  • 14
  • 27
0
votes
1 answer

Laravel Envoyer Deployment Hook Install Composer Dependencies Failed

We are using for Laravel Deployment the Envoyer platform. We have the problem that the Deployment Hook "Install Composer Dependencies" stops at 600 Seconds on one server. So the Deployment does not go through since days. I found the possibility to…