Skip to content

xiongxianzhu/xwebhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xwebhook

webhook(歪脖钩子)python版, 基于python3.6.7实现webhook脚本自动部署脚本。

采用架构

python3.6.7+flask1.0.2

将配置信息放在.env文件

.env_template拷贝并重命名为.env, 将配置信息放在.env文件, 更改为您的git_pathwebhook_token

其中:

  • git_path: 你要git pull的仓库在VPS上的路径
  • webhook_token: 接头暗号(密码/安全令牌), 明文
cp .env.example .env

用法

$ pip3.6 install pipenv
$ cd xwebhook
$ pipenv install
$ pipenv shell
(xwebhook)$ python app.py &
# or
(xwebhook)$ flask run -h 0.0.0.0 &

在仓库中添加webhook

for gitee:

for gitlab:

About

python3.6.7实现webhook脚本自动部署脚本

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages