2017 © Pedro Peláez
 

library deployment-command

Console-Command to deploy an application to (multiple) servers

image

bretrzaun/deployment-command

Console-Command to deploy an application to (multiple) servers

  • Thursday, November 30, 2017
  • by bretrzaun
  • Repository
  • 1 Watchers
  • 0 Stars
  • 27 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Deployment Command

Latest Stable Version Build Status License, (*1)

Symfony Console command to deploy an application to remote server(s)., (*2)

Installation

Install via Composer:, (*3)

composer require bretrzaun/deployment-command, (*4)

Configuration

For each environment create a configuration file named like the environment., (*5)

The nodes must be accessible via SSH-based authentication or a keyfile can be given., (*6)

Example

{
    "server" : {
        "nodes" : ["user@my-server"],
        "keyfile": "/path-to/keyfile",
        "target" : "/target-folder",
        "scripts" : {
            "pre-deploy-cmd" : [],
            "post-deploy-cmd" : [
                "command1",
                "command2"
            ]
        }
    },
    "scripts" : {
        "pre-deploy-cmd" : [
            "composer install --no-dev -o"
        ],
        "post-deploy-cmd" : [
            "composer install"
        ]
    }
}

Options

In the options section the following nodes can be defined:, (*7)

script-timeout

Process timeout in seconds for each local script. Default value: 120 seconds, (*8)

sync-timeout

Process timeout in seconds for sync. Default value: 300 seconds, (*9)

Usage

Register the console command to a Symfony console application:, (*10)

$console->add(new DeploymentCommand('path/to/config-folder/'));

The Versions

30/11 2017

dev-master

9999999-dev

Console-Command to deploy an application to (multiple) servers

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bret R. Zaun

29/11 2017

0.1.0

0.1.0.0

Console-Command to deploy an application to (multiple) servers

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bret R. Zaun