From e044e7ff0ef8448f37bae43593685d9fe193d368 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Thu, 18 Aug 2022 04:21:30 +0200 Subject: [PATCH] Fix gunicorn command --- podman/deploy.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/podman/deploy.py b/podman/deploy.py index d71822e..d8167a0 100755 --- a/podman/deploy.py +++ b/podman/deploy.py @@ -197,6 +197,9 @@ def main(): ) requirements_file = ADVLABDB_REPO_DIR / "requirements.txt" + container_cmd = ( + "\"gunicorn --bind 0.0.0.0:80 --workers 5 --log-file /volumes/logs/gunicorn.log 'run:create_app()'\"" + ) print("Creating AdvLabDB image.") commands = ( @@ -209,7 +212,7 @@ def main(): # Set the working directory of the container "buildah config --workingdir /volumes/repo builder", # Set the command that will run after starting the container - "buildah config --cmd 'gunicorn --bind 0.0.0.0:80 --workers 5 --log-file /volumes/logs/gunicorn.log run:create_app()' builder", + f"buildah config --cmd {container_cmd} builder", ) for command in commands: