anorgan/deployer-cli

CLI tool to help deploy projects to remote servers

v0.2.0 2015-10-06 21:37 UTC

This package is not auto-updated.

Last update: 2024-04-27 15:47:50 UTC


README

CLI tool for deployment on remote servers

Dependency Status

Instalation

$ wget http://bit.ly/deployer-cli -O deployer.phar

Usage

$ php deployer.phar deploy production

Configuration

$ php deployer.phar init

Creates something like:

# Environments
production:
  servers:
    app1:
      type: ssh # local or webhook
      host: app1.domain.com
      user: deployer
      path: /var/www/domain.com

  steps:
    Tests:
      commands:
        - bin/phpspec run -fpretty

  success:
    - echo "send email with output"
    - echo "send notification on Slack"

  # Run after any failure to deploy to destination (optional)
  fail:
    - echo "weep"

Requirements

PHP 5.4.0 or above

Licence

Deployer is licensed under the MIT License - see the LICENSE file for details