定制 robloach/git-deploy 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

robloach/git-deploy

最新稳定版本:0.0.5

Composer 安装命令:

composer create-project robloach/git-deploy

包简介

Deploy and manage git deployments.

README 文档

README

Deploy and maintain a number of git repositories through PHP.

Requirements

Installation

  1. Install Composer:

    $ php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"
  2. Use Composer to install Git Deploy:

    $ php composer.phar create-project robloach/git-deploy

Usage

  1. Create a git-deploy.json file:

    {
        "mywebsite": "https://github.com/my/website.git",
        "myotherwebsite": {
          "repo": "https://github.com/my/otherwebsite.git"
        },
        "mythirdwebsite": {
          "repo": "https://github.com/my/otherwebsite.git",
          "branches": [
            "branch1",
            "branch2"
          ]
        },
        "myfourthwebsite": {
          "repo": "https://github.com/my/otherwebsite.git",
          "branches": {
            "branch1": "path/to/destination/branch1",
            "branch2": "path/to/destination/branch2",
            "branch3": "path/to/destination/branch3"
          }
        }
    }
  2. Execute Git Deploy to deploy all sites:

    gh-pages-deploy/bin/gh-pages-deploy deploy
  3. Set up a cron job to deploy every once in a while.

    gh-pages-deploy/bin/gh-pages-deploy deploy

License

Licensed under the incredibly permissive MIT license

Copyright © Rob Loach (http://robloach.net)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-08