|
|
|
@ -115,7 +115,7 @@ def search(): |
|
|
|
@app.route('/webhook', methods=['POST']) |
|
|
|
@app.route('/webhook', methods=['POST']) |
|
|
|
def webhook(): |
|
|
|
def webhook(): |
|
|
|
if request.method == 'POST': |
|
|
|
if request.method == 'POST': |
|
|
|
repo_path = "http://192.168.178.21:3000/zvevqx/tdtdt.git" # Replace with the actual path |
|
|
|
repo_path = "http://git.tdtdt.net:3003/zvevqx/tdtdt.git" # Replace with the actual path |
|
|
|
subprocess.run(['git', 'pull', repo_path]) |
|
|
|
subprocess.run(['git', 'pull', repo_path]) |
|
|
|
return "Webhook received!" |
|
|
|
return "Webhook received!" |
|
|
|
|
|
|
|
|
|
|
|
|