|
@@ -34,20 +34,25 @@ pip install flask gunicorn pymysql sqlalchemy
|
|
|
environment=PYTHONPATH=$PYTHONPATH:/opt/webhooks
|
|
|
```
|
|
|
|
|
|
+ 4. 配置仓库
|
|
|
+ ```
|
|
|
+ repo = {
|
|
|
+ "9901b6deb47111e7b832704d7b885ead":{ #token
|
|
|
+ "name":"hneccp",
|
|
|
+ "path":"/app/web/www.hneccp.com/",
|
|
|
+ "ip":['127.0.0.1','123.206.177.125'],
|
|
|
+ "cmd":'git pull origin master',
|
|
|
+ "user":'www',
|
|
|
+ 'interval':10
|
|
|
+ },
|
|
|
|
|
|
-
|
|
|
-4. 导入数据库 修改密码
|
|
|
-
|
|
|
- 数据库在 db 目录下的data.sql里面数据库配置在 config.py 里面
|
|
|
-
|
|
|
- ```
|
|
|
- SQLALCHEMY_DATABASE_SQLITE_URI = "mysql+pymysql://root:password@localhost:3306/webhook?charset=utf8"
|
|
|
-
|
|
|
- ```
|
|
|
-
|
|
|
+}
|
|
|
+ ```
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
-5. 使 supervisor 自启动
|
|
|
+4. 使 supervisor 自启动
|
|
|
|
|
|
```
|
|
|
systemctl enable supervisord
|