1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-11-08 21:21:06 +00:00

Fix gunicorn command

This commit is contained in:
Mo 2022-08-18 04:21:30 +02:00
parent bf3a81a45b
commit e044e7ff0e

View file

@ -197,6 +197,9 @@ def main():
) )
requirements_file = ADVLABDB_REPO_DIR / "requirements.txt" 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.") print("Creating AdvLabDB image.")
commands = ( commands = (
@ -209,7 +212,7 @@ def main():
# Set the working directory of the container # Set the working directory of the container
"buildah config --workingdir /volumes/repo builder", "buildah config --workingdir /volumes/repo builder",
# Set the command that will run after starting the container # 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: for command in commands: