From d77740147562dcd567d80266e08c62adca4f3592 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Sun, 2 Oct 2022 22:25:23 -0400 Subject: [PATCH] Detach update process. --- app/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes.py b/app/routes.py index 86070ac..49a249e 100644 --- a/app/routes.py +++ b/app/routes.py @@ -276,7 +276,7 @@ def git_update() -> None: script = os.environ['UPDATE_SCRIPT_PATH'] if not script: return - subprocess.run(['bash', '-c', "test -f " + script + " && " + script]) + subprocess.Popen(['bash', '-c', "test -f " + script + " && " + script]) @writing_blueprint.route('/', methods=['POST'])