2017 © Pedro Pelรกez
 

library laravel-deploy-helper

Helper for Laravel to deploy from artisan

image

daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  • Thursday, October 19, 2017
  • by RamonSmit
  • Repository
  • 5 Watchers
  • 66 Stars
  • 4,015 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 29 Versions
  • 11 % Grown

The README.md

Laravel Deploy Helper

Dependency Status StyleCI Packagist Packagist license Made by DALTCORE FOSSA Status, (*1)

Compatible with Laravel 5.1, 5.4 and higher., (*2)

For Laravel 5.1 use branch 5.1 and tag v0.5.x, (*3)

LDH is a Laravel package that helps with deploying your website without the usage of FTP.
The LDH packages uses SSH to build a deployment environment on the server for zero-downtime deployments
and rollback functionality., (*4)

Everyone is allowed to help getting this package bigger and better! ;-), (*5)

Install

Via Composer, (*6)

``` bash $ composer require daltcore/laravel-deploy-helper, (*7)


In your config/app.php ``` php DALTCORE\LaravelDeployHelper\LdhServiceProvider::class,

Publish configuration, (*8)

$ php artisan vendor:publish --tag=ldh-config

Usage

Deploy to server
Deploy full instance to the remote server, (*9)

php artisan ldh:deploy --stage=production --branch=develop

Patch to server
Push a simple patch to the remote server (minor changes only), (*10)

php artisan ldh:patch --stage=production --branch=patch

Rollback one instance
Something went horrably wrong, go back in history, (*11)

php artisan ldh:rollback --stage=production

Configuration

stages
In the stages section you have to define your stages information., (*12)

git
You can use git's http url with basic auth. Example: https://username:password@github.com/repo/name.git .
You can use git's ssh. Example: git@github.com:repo/name.git, (*13)

connection
In the connection section you can add your ssh details for deploying, (*14)

remote.root
Here you can put the root directory where LDH can set up it's directory structure, (*15)

commands
This is a array with commands that needs to be executed from the /current directory, (*16)

shared.directories
This is te section with directories that needs to be copied from the previous deploy to the next one, (*17)

shared.files
The same as with the directories, but then with files., (*18)

config.dependencies
Here you can optionally put some dependencies (applications) that you want to use for deploy.
You can use this for checking if everything on the server is setup correctly with the versions.
You may want use 'true' for no version checking, but instead just checking if the application exists., (*19)

config.keep
How many 'shadow' copies of the old deploys needs to exist. These come in handy for the rollback feature., (*20)

Config example:, (*21)

<?php

return [
    'default' => [
        'stage' => 'production',
    ],

    'stages' => [
        'production' => [
            'git' => '',

            'branch' => '',

            'connection' => [
                'host'     => '',
                'username' => '',
                'password' => '',
                // 'key'       => '',
                // 'keytext'   => '',
                // 'keyphrase' => '',
                // 'agent'     => '',
                'timeout'  => 10,
            ],

            'remote' => [
                'root' => '/var/www',
            ],

            'commands' => [
                'composer install',
            ],

            'shared' => [
                'directories' => [
                    'public',
                    'storage',
                ],
                'files'       => [
                    '.env',
                ],
            ],

            'config' => [
                'dependencies' => [
                    'php' => '>=5.6',
                    'git' => true,
                ],
                'keep'         => 4,
            ],
        ],
    ],
];

Directory structure

LDH deploys the following directory structure on first deploy, (*22)

.
โ”œโ”€โ”€ current -> /var/www/vhosts/example.org/releases/1498833243
โ”œโ”€โ”€ ldh.json
โ”œโ”€โ”€ patches
โ”‚ย ย  โ””โ”€โ”€ 0001-Update-readme.md.patch
โ”œโ”€โ”€ releases
โ”‚ย ย  โ””โ”€โ”€ 1498833243
โ””โ”€โ”€ shared

As you can see, LDH makes a static link from /current to /releases/1496845077.
You you only have to point your vhost to the /current/public for your Laravel website to work., (*23)

License

FOSSA Status, (*24)

The Versions

19/10 2017

dev-master

9999999-dev https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel daltcore laravel-deploy-helper

19/10 2017

v1.1.9

1.1.9.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel daltcore laravel-deploy-helper

18/10 2017

v1.1.8

1.1.8.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel daltcore laravel-deploy-helper

04/09 2017

v1.1.7

1.1.7.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel daltcore laravel-deploy-helper

21/07 2017

v1.1.6

1.1.6.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel daltcore laravel-deploy-helper

19/07 2017

v1.1.5

1.1.5.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel daltcore laravel-deploy-helper

19/07 2017

5.1.x-dev

5.1.9999999.9999999-dev https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel daltcore laravel-deploy-helper

19/07 2017

v0.5.6

0.5.6.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel daltcore laravel-deploy-helper

19/07 2017

v0.5.5

0.5.5.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel daltcore laravel-deploy-helper

18/07 2017

v0.5.4

0.5.4.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel daltcore laravel-deploy-helper

18/07 2017

v1.1.4

1.1.4.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel daltcore laravel-deploy-helper

18/07 2017

v1.1.3

1.1.3.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel daltcore laravel-deploy-helper

18/07 2017

v1.1.2

1.1.2.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel daltcore laravel-deploy-helper

14/07 2017

v1.1.1

1.1.1.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel daltcore laravel-deploy-helper

13/07 2017

v1.1.0

1.1.0.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

laravel daltcore laravel-deploy-helper

13/07 2017

v1.0.10

1.0.10.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

laravel daltcore laravel-deploy-helper

12/07 2017

v1.0.9

1.0.9.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

laravel daltcore laravel-deploy-helper

12/07 2017

v1.0.8

1.0.8.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

laravel daltcore laravel-deploy-helper

12/07 2017

v0.5.3

0.5.3.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

laravel daltcore laravel-deploy-helper

12/07 2017

v1.0.7

1.0.7.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

laravel daltcore laravel-deploy-helper

04/07 2017

v0.5.2

0.5.2.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

laravel daltcore laravel-deploy-helper

04/07 2017

v0.5.1

0.5.1.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

laravel daltcore laravel-deploy-helper

30/06 2017

v1.0.6

1.0.6.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

laravel daltcore laravel-deploy-helper

26/06 2017

v1.0.5

1.0.5.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

laravel daltcore laravel-deploy-helper

22/06 2017

v1.0.4

1.0.4.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

laravel daltcore laravel-deploy-helper

22/06 2017

v1.0.3

1.0.3.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

laravel daltcore laravel-deploy-helper

22/06 2017

v1.0.2

1.0.2.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

laravel daltcore laravel-deploy-helper

15/06 2017

v1.0.1

1.0.1.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

laravel daltcore laravel-deploy-helper

07/06 2017

v1.0.0

1.0.0.0 https://github.com/daltcore/laravel-deploy-helper

Helper for Laravel to deploy from artisan

  Sources   Download

MIT

The Requires

 

laravel daltcore laravel-deploy-helper