Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

License

NotificationsYou must be signed in to change notification settings

xiongxianzhu/xwebhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

forgitee:

forgitlab:

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp