Setup Envoy Laravel Linux

Setup Envoy Laravel Linux is easy and gives many advantages.Laravel is very popular today,Laravel Envoy provides a clean, minimal syntax for running tasks on remote servers without effort. Using a Blade style syntax (Laravel uses), you can easily setup tasks for deployment, Artisan commands, or scripts.

This tutorial will help you to do the Basic Steps in set upping the Envoy.Here, I am explaining this with the Laravel Envoy.I hope you are familiarized with the Blade syntax, Artisan Commands etc.

Envoy Installation

Add the following ine to your composer.json file :

Initial Setup

Create an Envoy.blade.php file, in the root directory

Also, you can create the Envoy file using the command :

Running Tasks in Envoy

To run a task in Envoy :

If you want to pass variable through command line use :

Update Envoy

I am using Envoy to execute the git commands on server from my local system. So, that it will automatically do the rest of the job in the server.In order to work this you have to first establish a SSH Connection between the repository and the server.

Example

Envoy uses the Blade Templating to format the Envoy Commands.
Zero Downtime is the great advantage of using Envoyer.
I am using Laravel Envoy for project deployment.And i have to say this is amazing to deploy,update and for more.

Note: More detailed explanation is available on Laravel Envoy.

Leave a Comment

Your email address will not be published. Required fields are marked *