2017 © Pedro Peláez
 

library laravel-envoy

Automated deployment template for Laravel Envoy based on Capistrano.

image

exolnet/laravel-envoy

Automated deployment template for Laravel Envoy based on Capistrano.

  • Friday, June 29, 2018
  • by xel1045
  • Repository
  • 9 Watchers
  • 5 Stars
  • 916 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 12 Open issues
  • 13 Versions
  • 13 % Grown

The README.md

Laravel Envoy Template

Latest Stable Version Software License Build Status Total Downloads, (*1)

This repository contains automated deployment template for Laravel Envoy. The deployment flow is based on Capistrano., (*2)

Installation

  1. Require this package with composer: composer require --dev exolnet/laravel-envoy:"^1.9"
  2. Create a Envoy.blade.php on your project's root with the following content: @import('exolnet/laravel-envoy'), (*3)

    For a typical Laravel project, you should have a file looking like:, (*4)

    @import('exolnet/laravel-envoy')
    
    @task('deploy:publish')
        cd "{{ $releasePath }}"
    
        php artisan down
    
        php artisan config:cache
        php artisan event:cache
        php artisan route:cache
        php artisan view:cache
    
        php artisan storage:link
    
        php artisan migrate --force
    
        php artisan up
    @endtask
    
  3. Create your deployment configuration in your Laravel project at config/deploy.php. An example config file is provided in this repository at config/deploy.php, (*5)

    For a typical Laravel project, you should have a file looking like:, (*6)

    <?php
    
    return [
        'name' => 'example',
    
        'default' => 'production',
    
        'environments' => [
            'production' => [
                'ssh_host'       => 'example.com',
                'ssh_user'       => 'example',
                'deploy_path'    => '/srv/example',
                'repository_url' => 'git@github.com:example/example.git',
                'linked_files'   => ['.env'],
                'linked_dirs'    => ['storage/app', 'storage/framework', 'storage/logs'],
                'copied_dirs'    => ['node_modules', 'vendor'],
            ],
        ],
    ];
    
  4. Enjoy!, (*7)

Upgrade

Please read UPGRADE-1.x for the procedure to upgrade to version 1.x., (*8)

Usage

The following macro are available:, (*9)

  • vendor/bin/envoy run setup: Setup the directory structure and repository on the remote host
  • vendor/bin/envoy run deploy --commit=abcdef: Deploy commit abcdef to the remote host
  • vendor/bin/envoy run deploy:publish --current: Run the deploy:publish task for the current release on the remote host
  • vendor/bin/envoy run releases: List available releases on the remote host
  • vendor/bin/envoy run rollback [--release=123456]: Rollback to previous release or to 123456 if specified on the remote host
  • vendor/bin/envoy run backups: List existing backups on the remote host

You can also use the native Envoy command too:, (*10)

  • vendor/bin/envoy tasks: List available tasks and macros
  • vendor/bin/envoy ssh: Connect to the remote host

Note that you can also use the option --env=foo with any of the previous command to connect to an other remote define in the configuration., (*11)

Contributing

Please see CONTRIBUTING and CODE OF CONDUCT for details., (*12)

Security

SSH StrictHostKeyChecking is enforced when using git over ssh. If your remote git repository server does not support SSHFP/VerifyHostKeyDNS, you will need to manually create the known_hosts file on the remote host., (*13)

If you discover any security related issues, please email security@exolnet.com instead of using the issue tracker., (*14)

Credits

License

Copyright © eXolnet. All rights reserved., (*15)

This code is licensed under the MIT license. Please see the license file for more information., (*16)

The Versions

29/06 2018

dev-master

9999999-dev

Automated deployment template for Laravel Envoy based on Capistrano.

  Sources   Download

MIT

The Requires

 

29/06 2018

v0.4.5

0.4.5.0

Automated deployment template for Laravel Envoy based on Capistrano.

  Sources   Download

MIT

The Requires

 

28/02 2018

v0.4.4

0.4.4.0

Automated deployment template for Laravel Envoy based on Capistrano.

  Sources   Download

MIT

The Requires

 

28/02 2018

v0.4.3

0.4.3.0

Automated deployment template for Laravel Envoy based on Capistrano.

  Sources   Download

MIT

The Requires

 

26/10 2016

dev-features/add-link-to-the-license

dev-features/add-link-to-the-license

Automated deployment template for Laravel Envoy based on Capistrano.

  Sources   Download

MIT

The Requires

 

04/10 2016

v0.4.2

0.4.2.0

Automated deployment template for Laravel Envoy based on Capistrano.

  Sources   Download

MIT

The Requires

 

20/10 2015

v0.4.1

0.4.1.0

Automated deployment template for Laravel Envoy based on Capistrano.

  Sources   Download

MIT

The Requires

 

25/09 2015

v0.4.0

0.4.0.0

Automated deployment template for Laravel Envoy based on Capistrano.

  Sources   Download

MIT

The Requires

 

18/08 2015

v0.3.0

0.3.0.0

Automated deployment template for Laravel Envoy based on Capistrano.

  Sources   Download

MIT

The Requires

 

16/07 2015

v0.2.1

0.2.1.0

Automated deployment template for Laravel Envoy based on Capistrano.

  Sources   Download

MIT

The Requires

 

16/07 2015

v0.2.0

0.2.0.0

Automated deployment template for Laravel Envoy based on Capistrano.

  Sources   Download

MIT

The Requires

 

30/06 2015

v0.1.1

0.1.1.0

Automated deployment template for Laravel Envoy based on Capistrano.

  Sources   Download

MIT

The Requires

 

30/06 2015

v0.1.0

0.1.0.0

Automated deployment template for Laravel Envoy based on Capistrano.

  Sources   Download

MIT

The Requires