darkzn/ghubautopull 问题修复 & 功能扩展

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

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

darkzn/ghubautopull

最新稳定版本:v1.0.0

Composer 安装命令:

composer require darkzn/ghubautopull

包简介

Darkzn98's Github Autopull

README 文档

README

Author: Darkzn98 darkzn98@gmail.com

About

GHubAutoPull is a composer package for Laravel and Lumen. This package used for running git pull and composer install on configured server using Github Webhook automatically.

Requirements

  • PHP >= 7.3.9
  • Github Webhook
  • Server SSH Key Saved to GitHub

Usage

  1. Add the package running this command
composer require darkzn/ghubautopull
  1. Add this package to service your app service provider so the route registered.

For Laravel config/app.php:

'providers' = >[
    // Other Providers
    Darkzn\Ghubautopull\GhubAutopullServiceProvider::class,
],

For Lumen bootstrap/app.php:

$app->register(Darkzn\Ghubautopull\GhubAutopullServiceProvider::class);
  1. Configure Github Webhook with the webhook url of https://{YOUR_APP_URL}/hook.json. Don't forget to set the Webhook Secret!
  2. Configure the .env file by adding this code
# Webhook Secret
GHUB_WEBHOOK_SECRET=testwebhooklaravel
# Webhook Branch (Will exec git pull if github ref matched branch deploy variable)
GHUB_BRANCH_DEPLOY=master
  1. Test the webhook.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-03-19