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

Problems in installing Laravel Envoy with composer

When i try to install laravel envoy and run this command: composer global require "laravel/envoy=~1.0" I received this answer in terminal: Your requirements could not be resolved to an installable set of packages. Problem 1 - Conclusion:…
Mehdi Bahrami
  • 79
  • 1
  • 7
2
votes
1 answer

Elastic Beanstalk with Laravel Envoy

I write a bash script to run the laravel envoy command in Elastic Beanstalk. #!/bin/sh cd /var/app/current/ sudo php vendor/bin/envoy run fillData & And it gives errors as: Unsuccessful command execution on the instance And when accessing the EC2…
2
votes
1 answer

Can't run Laravel Envoy with exec (works in command line but doesn't with Artisan::call)

I have an envoy script which I am triggering within Laravel Command. php artisan proxy:update public function handle() { exec("envoy run update"); } If I run this on command line as php artisan proxy:update, it works. However if I run this…
senty
  • 12,385
  • 28
  • 130
  • 260
2
votes
1 answer

Control webpack compilation progress output - Laravel Mix/Envoy

Using the command like npm run development through Laravel Envoy, makes every line outputted back making hundreds of lines like this in the console: [remote@server]: [webpack.Progress] 65% building 145/150 modules 5 active…
Vladan
  • 1,572
  • 10
  • 23
2
votes
0 answers

Access error running Laravel Envoy in Laravel 5.7

I created an envoy file in my Laravel 5.7 app. However, running on my local comp, I got an error: $ envoy run deploy PHP Warning: file_get_contents(/home/user/.ssh/config): failed to open stream: Permission denied…
Petro Gromovo
  • 1,755
  • 5
  • 33
  • 91
2
votes
1 answer

Hide Output of Composer Install Command

Is there a way that we can hide the output of the command composer install? I run a deployment script for my Laravel application, and the output is messy when it prints hundreds of lines of: Installing app/package (v1.2.1), Loading from…
Nick Davies
  • 573
  • 5
  • 15
2
votes
2 answers

How in envoy.blade write such string?

In GitLab CI i have two variables: USER AND HOST. In envoy.plade I want to get this: @servers(['web' => 'user@host']) I write like this: @servers(['web' => '{{ getenv('USER') }}@{{ getenv('HOST') }}']) But get error, how write it?
2
votes
1 answer

Cant run a migration when deploying. Laravel 5.2

Consider the following task for envoy: @task('deploy', ['on' => 'web']) cd personal_site php artisan down git pull origin master composer install php artisan migrate php artisan up @endtask php artisan migrate // Blows…
TheWebs
  • 12,470
  • 30
  • 107
  • 211
2
votes
1 answer

Laravel 5.1 deployement with Envoy cd: Permission denied

I am trying to deploy my laravel 5.1 with Envoy when I try to run envoy run deploy I get the following error: cd: /home/spark/: Permission denied this means deploybot has no permission to access my project folder how can I give deploybot…
Moussa Chaabar
  • 501
  • 6
  • 18
2
votes
1 answer

Laravel Envoy and bash prompt

I'm using Envoy to provision a remote server. Provisioning is done by pulling the bash script from a private repo and then execute it. The bash script ask some confirmation like yes/no (using bash "read -p"): it works as expected when i'm connected…
Luciano
  • 1,455
  • 8
  • 22
  • 52
2
votes
2 answers

Laravel Envoy on fortrabbit

I've setup a Laravel app on a Fortrabbit server. I can do the following $ ssh user@server $ cd htdocs $ php artisan migrate Which works perfectly fine. But I'm trying to use Envoy for tasks like this. So I've made a simple task: @servers(['test' =>…
nielsstampe
  • 1,336
  • 1
  • 15
  • 25
1
vote
5 answers

Symlink is not getting refresh until apache server reboot

Basically i have followed steps from this link: https://docs.gitlab.com/ee/ci/examples/laravel_with_gitlab_and_envoy/ I am using apache server instead of NGINX and that is the only difference. So there is one envoy file which will do below: clone…
DS-PHP
  • 23
  • 3
1
vote
1 answer

app.js unable to get environment variable when deploy using Laravel envoy

I want to deploy my application with envoy so to ensure there will be zero downtime. After some research i found that this script worked exactly what i want. https://github.com/papertank/envoy-deploy Basically for backend everything worked well. I…
masterhunter
  • 551
  • 2
  • 10
  • 29
1
vote
0 answers

How can I zip with artifacts the entire laravel released folder?

I'm struggling to figure it out this. I'm trying to create an artifact from whole project after deploy process ends and it drops the release folder but I'm missing something about this, I mean, I want to zip all the released folder. This is my…
Prospero
  • 2,190
  • 2
  • 4
  • 18
1
vote
1 answer

envoy deploys: Problems running envoy run deploy command

Envoy Version: 2.2.0 Laravel Version: 6.18.3 PHP Version: 7.4.8 Database Driver & Version: mysql 15.1 Distrib 10.3.23-MariaDB I have deployed the Envoy package successfully at my Vagrant Homestead Laravel box and works like a charm. I implemented…