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:
parent
bf3a81a45b
commit
e044e7ff0e
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue