|
|
|
@ -123,8 +123,8 @@ def webhook(): |
|
|
|
return "Unauthorized", 401 |
|
|
|
return "Unauthorized", 401 |
|
|
|
|
|
|
|
|
|
|
|
# Perform Git pull to update the website's code |
|
|
|
# Perform Git pull to update the website's code |
|
|
|
repo_path = "/path/to/your/website/repo" # Replace with the actual path |
|
|
|
#repo_path = "/path/to/your/website/repo" # Replace with the actual path |
|
|
|
subprocess.run(['git', 'pull'], cwd=repo_path) |
|
|
|
#subprocess.run(['git', 'pull'], cwd=repo_path) |
|
|
|
|
|
|
|
|
|
|
|
# Restart the Flask app |
|
|
|
# Restart the Flask app |
|
|
|
#restart_flask_app() |
|
|
|
#restart_flask_app() |
|
|
|
|