graviton / deploy-scripts
low level deploy helpers
Installs: 8 938
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 20
Forks: 0
Open Issues: 0
Requires
- incenteev/composer-parameter-handler: ^2.1
- symfony/config: ^2.6 || ^3.0
- symfony/console: ^2.6 || ^3.0
- symfony/process: ^2.6 || ^3.0
Requires (Dev)
- kherge/box: ^2.5
- libgraviton/codesniffer: ~1.3
- phpunit/phpunit: ~4.6
- squizlabs/php_codesniffer: ~2.2
This package is auto-updated.
Last update: 2022-01-28 08:50:47 UTC
README
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 aGravitonDeployBundle
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.