4 Star 10 Fork 2

若相惜_莫回首 / php-webhook

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

php-webhook

版本

0.1

兼容

  • 目前测试通过Coding、gitosc其他暂未测试

config.json 配置文件

请先将config.example.json重命名为config.json

{
  "user":"www-data", //用户
  "userGroup":"www-data", //用户组
  "__config__":[
    {
      "path":"default", //网站文件目录,目前默认和hook文件同级
      "token":"test", //token 和在webhook填写的token相同,不能为空
      "name":"test" //项目名称
    },
    ......
  ]
}

日志文件

//日志文件目录结构
|---hook
|------log
|---------error                   //错误日志
|------------all                  //通用错误文件夹
|------------project              //项目名命名的文件夹
|---------------2016-04.log       //每一个月一个log文件
|---------success                 //成功日志
|------------project              //项目名命名的文件夹
|---------------2016-04.log       //每一个月一个log文件

使用的详细方法

php-webhook:利用php脚本自动化部署git项目

The MIT License (MIT) Copyright (c) 2016 若相惜_莫回首 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

git自动部署钩子 展开 收起
PHP
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
PHP
1
https://gitee.com/lxl520/php-webhook.git
git@gitee.com:lxl520/php-webhook.git
lxl520
php-webhook
php-webhook
master

搜索帮助