graviton/deploy-scripts

This package is abandoned and no longer maintained. No replacement package was suggested.

low level deploy helpers

v0.5.0 2016-08-16 11:37 UTC

This package is auto-updated.

Last update: 2022-01-28 08:50:47 UTC


README

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version Total Downloads License

Installation

Install it using composer.

composer require graviton/deploy-scripts

There is also a PHAR file for your convenience, located here. ;-)

Configuration

The configuration is to be done in app/config/deploy.yml. In order to configure this library you have to copy the deploy.yml.dist to deploy.yml and modify the latter by replacing every value with your personal configuration.

PHAR building

In order to build a PHAR file, execute

composer build

The deploy.phar will be created in build/. This build/ folder can be pushed to the cloud by using deploy-scripts on this repo (probably using deploy.phar itself *g)

Usage

Console command

To get an overview about every available command run:

$>php ./bin/deploy list

In code

see tests ;)

Development

We welcome contributions as a pull request on the develop branch.

Add new Command

Commands need to be registered within bin/deploy see here

Available Commands

Cloud Foundry specific

  • CheckApplicationCommand Determines, if a special Cloud Foundry application is alive.

  • DeployCommand Deploys an application to a CF instance.

  • RunCommand Runs a shell command on a CF instance. It does not clean up at the moment so you have to do it yourself by running:

    cf a | awk '/-run-/ {print $1}' | xargs -n 1 cf d -

Further ideas

  • evolve a GravitonDeployBundle from this library.
  • provide the possibility to push to multiple Cloud Foundry instances at once by one command.
  • add incenteev Parameter handler (https://github.com/Incenteev/ParameterHandler) to be able to use env vars for config.