PHPackages                             daltcore/laravel-deploy-helper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. daltcore/laravel-deploy-helper

AbandonedArchivedLibrary[DevOps &amp; Deployment](/categories/devops)

daltcore/laravel-deploy-helper
==============================

Helper for Laravel to deploy from artisan

3.0.0(5y ago)637.3k5MITPHPPHP &gt;=5.6.0

Since Jun 7Pushed 5y ago5 watchersCompare

[ Source](https://github.com/DALTCORE/laravel-deploy-helper)[ Packagist](https://packagist.org/packages/daltcore/laravel-deploy-helper)[ Docs](https://github.com/daltcore/laravel-deploy-helper)[ RSS](/packages/daltcore-laravel-deploy-helper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (32)Used By (0)

Laravel Deploy Helper
=====================

[](#laravel-deploy-helper)

[![Dependency Status](https://camo.githubusercontent.com/121514e618aa0479324e322b07b661a6cee6584758cb3cf42b2c376e5843fd89/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3539336533386166306662323466303033646530633834632f62616467652e7376673f7374796c653d666c61742d737175617265)](https://www.versioneye.com/user/projects/593e38af0fb24f003de0c84c)[![StyleCI](https://camo.githubusercontent.com/4cdf0daee67a3430b76c11a3a36cc73c556d35c517d8d322a6bbaa5620026d0f/68747470733a2f2f7374796c6563692e696f2f7265706f732f39333633383231322f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/93638212)[![Packagist](https://camo.githubusercontent.com/ffd8f83a459ef0f168461333c1b5289395e22204dd8ad469799ff8f82df6ef22/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f64616c74636f72652f6c61726176656c2d6465706c6f792d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/daltcore/laravel-deploy-helper)[![Packagist](https://camo.githubusercontent.com/9884d41e981d9befdea624080f1559d8e26f01f21611118e3265ffb6f4ced7b5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64616c74636f72652f6c61726176656c2d6465706c6f792d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/daltcore/laravel-deploy-helper)[![license](https://camo.githubusercontent.com/6f09ffc7d9a28e9bfdfae542f9ff69001de7da6791d1c39e8fc255abea817853/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f44414c54434f52452f6c61726176656c2d6465706c6f792d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://github.com/DALTCORE/laravel-deploy-helper/blob/master/LICENSE)[![Made by DALTCORE](https://camo.githubusercontent.com/3444e4da033a913ec80b680c1b1d013ffc599c88c6aeec7c7798e869ada47bd9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d41444525323042592d44414c54434f52452d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/DALTCORE)[![FOSSA Status](https://camo.githubusercontent.com/0556170b3537af043b265b86be0aceb799eec675f558192bcdb1f08e37d7ef59/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d25324644414c54434f52452532466c61726176656c2d6465706c6f792d68656c7065722e7376673f747970653d736869656c64)](https://app.fossa.io/projects/git%2Bgithub.com%2FDALTCORE%2Flaravel-deploy-helper?ref=badge_shield)

Compatible with Laravel [5.1](https://github.com/DALTCORE/laravel-deploy-helper/tree/5.1), 5.4 and higher.

**For Laravel 5.1 use branch 5.1 and tag v0.5.x**

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.

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

Install
-------

[](#install)

Via Composer

```
$ composer require daltcore/laravel-deploy-helper
```

In your config/app.php

```
DALTCORE\LaravelDeployHelper\LdhServiceProvider::class,
```

Publish configuration

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

Usage
-----

[](#usage)

*Deploy to server*
Deploy full instance to the remote server

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

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

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

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

```
php artisan ldh:rollback --stage=production
```

Configuration
-------------

[](#configuration)

`stages`
In the stages section you have to define your stages information.

`git`
You can use git's http url with basic auth. Example: ** .
You can use git's ssh. Example: *:repo/name.git*

`connection`
In the connection section you can add your ssh details for deploying

`remote.root`
Here you can put the root directory where LDH can set up it's directory structure

`commands`
This is a array with commands that needs to be executed from the /current directory

`shared.directories`
This is te section with directories that needs to be copied from the previous deploy to the next one

`shared.files`
The same as with the directories, but then with files.

`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.

`config.keep`
How many 'shadow' copies of the old deploys needs to exist. These come in handy for the rollback feature.

Config example:

```
