Friday, June 19, 2015

Deploy using Envoy in Laravel 5.1

Deploy using Envoy:

Recently Laravel launched a stable version that is Laravel 5.1

In Larvel 4.2 Envoy was showing a lot of problem for deploy. But its very easy in Laravel 5.1 .

Steps:

1. Run the command on your Laravel 5.1 root path
    
composer global require "laravel/envoy=~1.0"
Make sure to place the ~/.composer/vendor/bin directory in your PATH so the envoy executable is found when you run the envoy command in your terminal.
 
2. Run this command on your terminal.
  
composer global update

3. Now create a file Envoy.blade.php on your root path and write your task here.
  e.g.
   
@servers(['web' => 'user@192.168.1.1'])

@task('foo', ['on' => 'web'])
    ls -la
@endtask

 4.For run this task use the command.
 
envoy run deploy

For more use of deploy click here

Thanks
 

No comments:

Post a Comment