2017 © Pedro Peláez
 

library deployer

Easy deployer for web projects using Gitlab

image

mikevrind/deployer

Easy deployer for web projects using Gitlab

  • Thursday, July 7, 2016
  • by MikeVrind
  • Repository
  • 3 Watchers
  • 1 Stars
  • 443 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 17 Versions
  • 1 % Grown

The README.md

Deployer

License Latest Stable Version Total Downloads, (*1)

Use this package to automate the deployment process of your Laravel project that are hosted on Gitlab. Just follow the installation instructions. Don't forget to check the configuration file for the deployment options!, (*2)

Installation

Require this package with composer:, (*3)

composer require mikevrind/deployer

After updating composer, add the DeployerServiceProvider to the providers array in config/app.php, (*4)

MikeVrind\Deployer\DeployerServiceProvider::class,

Configuration

The setup of the deployer can (and should be) changed by publishing the configuration file., (*5)

You should use Artisan to copy the default configuration file from the /vendor directory to /config/deployer.php with the following command:, (*6)

php artisan vendor:publish --provider="MikeVrind\Deployer\DeployerServiceProvider"

It's advised to define the settings via your .env file so that it's possible to change the behavior of the deployer per environment, (*7)

CSRF Token

Update the VerifyCsrfToken middleware by adding '_deployer/deploy' to the $except array.
Without this exception, all webhooks will fail because of a missing token in each request., (*8)

.env setup

Add the following lines to your .env(.example) file. The DEPLOYER_REMOTE_* settings are used to establish a CLI connection with the server., (*9)

DEPLOYER_ENABLED=true
DEPLOYER_MAIL_ENABLED=true
DEPLOYER_REPO_BRANCH=
DEPLOYER_REPO_PROJECT_ID=
DEPLOYER_REPO_REPOSITORY=

DEPLOYER_REMOTE_HOST=
DEPLOYER_REMOTE_USER=
DEPLOYER_REMOTE_PWD=
DEPLOYER_REMOTE_KEY=
DEPLOYER_REMOTE_KEYTEXT=
DEPLOYER_REMOTE_KEYPHRASE=
DEPLOYER_REMOTE_TIMEOUT=

Settings

DEPLOYER_ENABLED (default; false)

Determines if the deployer should be enabled for this environment, (*10)

DEPLOYER_MAIL_ENABLED (default; false)

Determines if after deployment has been completed a mail should be send to the configured recipients, (*11)

DEPLOYER_REPO_BRANCH (default; master)

Determines to which branch the deployer should listen to when the web hook is fired, (*12)

DEPLOYER_REPO_PROJECT_ID (default; 1)

Determines to which project ID the deployer should listen to when the web hook is fired, (*13)

DEPLOYER_REPO_REPOSITORY (default; git@git.domain.tld/group/project.git)

Determines to which project ID the deployer should listen to when the web hook is fired, (*14)

DEPLOYER_REMOTE_HOST (default; '')

Determines to which HOST the SSH connection should be established, (*15)

DEPLOYER_REMOTE_USER (default; '')

Determines the user that should be used for the SSH connection, (*16)

DEPLOYER_REMOTE_PWD (optional, default; '')

Determines the password for the user that should be used for the SSH connection, (*17)

DEPLOYER_REMOTE_KEY (optional, default; '')

Determines the public_key filename for the user that should be used for the SSH connection, (*18)

DEPLOYER_REMOTE_KEYTEXT (optional, default; '')

Determines the public_key for the user that should be used for the SSH connection, (*19)

DEPLOYER_REMOTE_KEYPHRASE (optional, default; '')

Determines the password for the public_key, (*20)

DEPLOYER_REMOTE_TIMEOUT (default; 120)

Determines how long the connection should wait for your commands. Settings this to 0 will wait indefinitely for your command to finish., (*21)

Webhook configuration

Open your project and go to Settings -> Web hooks. This package listens to the _deployer/deploy route.
So add something like http(s)://www.domain.tld/_deployer/deploy as the URL.
In most cases, the Push events trigger will be oke to use. Now add the new webhook and you're done!, (*22)

Contributing

Please see CONTRIBUTING for details., (*23)

Security

If you discover any (security related) issues, please create an issue in the the issue tracker., (*24)

License

The MIT License (MIT). Please see License File for more information., (*25)

The Versions

07/07 2016

dev-master

9999999-dev

Easy deployer for web projects using Gitlab

  Sources   Download

MIT

The Requires

 

by Mike de Vrind

laravel deployer gitlab

07/07 2016

dev-dev

dev-dev

Easy deployer for web projects using Gitlab

  Sources   Download

MIT

The Requires

 

by Mike de Vrind

laravel deployer gitlab

07/07 2016

1.1.11

1.1.11.0

Easy deployer for web projects using Gitlab

  Sources   Download

MIT

The Requires

 

by Mike de Vrind

laravel deployer gitlab

10/06 2016

1.1.10

1.1.10.0

Easy deployer for web projects using Gitlab

  Sources   Download

MIT

The Requires

 

by Mike de Vrind

laravel deployer gitlab

04/03 2016

1.1.9

1.1.9.0

Easy deployer for web projects using Gitlab

  Sources   Download

MIT

The Requires

 

by Mike de Vrind

laravel deployer gitlab

02/03 2016

1.1.7

1.1.7.0

Easy deployer for web projects using Gitlab

  Sources   Download

MIT

The Requires

 

by Mike de Vrind

laravel deployer gitlab

02/03 2016

1.1.8

1.1.8.0

Easy deployer for web projects using Gitlab

  Sources   Download

MIT

The Requires

 

by Mike de Vrind

laravel deployer gitlab

02/03 2016

1.1.6

1.1.6.0

Easy deployer for web projects using Gitlab

  Sources   Download

MIT

The Requires

 

by Mike de Vrind

laravel deployer gitlab

05/02 2016

1.1.5

1.1.5.0

Easy deployer for web projects using Gitlab

  Sources   Download

MIT

The Requires

 

by Mike de Vrind

laravel deployer gitlab

05/02 2016

1.1.3

1.1.3.0

Easy deployer for web projects using Gitlab

  Sources   Download

MIT

The Requires

 

by Mike de Vrind

laravel deployer gitlab

05/02 2016

1.1.2

1.1.2.0

Easy deployer for web projects using Gitlab

  Sources   Download

MIT

The Requires

 

by Mike de Vrind

laravel deployer gitlab

05/02 2016

1.1.1

1.1.1.0

Easy deployer for web projects using Gitlab

  Sources   Download

MIT

The Requires

 

by Mike de Vrind

laravel deployer gitlab

05/02 2016

1.1.0

1.1.0.0

Easy deployer for web projects using Gitlab

  Sources   Download

MIT

The Requires

 

by Mike de Vrind

laravel deployer gitlab

03/02 2016

1.0.3

1.0.3.0

Easy deployer for web projects using Gitlab

  Sources   Download

MIT

The Requires

 

by Mike de Vrind

laravel deployer gitlab

02/02 2016

1.0.2

1.0.2.0

Easy deployer for web projects using Gitlab

  Sources   Download

MIT

The Requires

 

by Mike de Vrind

laravel deployer gitlab

04/01 2016

1.0.1

1.0.1.0

Easy deployer for web projects using Gitlab

  Sources   Download

MIT

The Requires

 

by Mike de Vrind

laravel deployer gitlab

28/12 2015

1.0

1.0.0.0

Easy deployer for web projects

  Sources   Download

MIT

The Requires

 

by Mike de Vrind