graviton/deploy-scripts 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

graviton/deploy-scripts

最新稳定版本:v0.5.0

Composer 安装命令:

composer require graviton/deploy-scripts

包简介

low level deploy helpers

README 文档

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.

统计信息

  • 总下载量: 8.94k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 20
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL
  • 更新时间: 2015-05-19