# webhooks **Repository Path**: coolbits/webhooks ## Basic Information - **Project Name**: webhooks - **Description**: 专为git.oschina.net制作的git钩子服务端。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 6 - **Created**: 2017-08-15 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Webhooks-git.oschina.net ================================================================= 专为git.oschina.net制作的git钩子服务端。

服务器需要安装nodejs

然后把这个项目布置到服务器上。

npm install

node app.js

推荐使用 forever 来后台启动进程.

##app设置

//自定义参数

var password = '123123123'; //提交密码

var releasewords = 'release'; //发布关键字,只有包含关键字的message才会发布到环境中

##.sh文件设置

deploy.sh中

28行 cd /home/www/$PROJECT_NAME

/home/www/请修改成自己的项目群目录

会根据请示地址中p的参数,对这个目录下的参数项目进行git pull

##PUSH钩子设置

钩子地址:IP/deploy/?p=项目名字.

密码:自定义 ##其它 提供了简单的提交日志功能 ./access.log