From e172692cdb668c6d7e171016e645e4d5ab5b055b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Zatloukal?= Date: Thu, 29 Oct 2020 14:46:32 +0100 Subject: [PATCH] Testdays: Try to specify gunicorn command --- .../openshift-apps/testdays/templates/deploymentconfig.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/openshift-apps/testdays/templates/deploymentconfig.yml b/roles/openshift-apps/testdays/templates/deploymentconfig.yml index ac6e3e872f..3d853d39ee 100644 --- a/roles/openshift-apps/testdays/templates/deploymentconfig.yml +++ b/roles/openshift-apps/testdays/templates/deploymentconfig.yml @@ -18,8 +18,8 @@ spec: failurePolicy: Abort execNewPod: containerName: testdays -# We only need to init the database the first time, after we just need to check -# for DB upgrades + # We only need to init the database the first time, after we just need to check + # for DB upgrades command: ["python", "/opt/app-root/src/testdays/cli.py", "init_db"] template: metadata: @@ -30,6 +30,8 @@ spec: containers: - name: testdays image: testdays:latest + command: ["gunicorn"] + args: ["-b", "0.0.0.0:80", "-w", "4", "--log-level", "DEBUG", "-t", "180", "testdays:wsgi"] ports: - containerPort: 80 resources: {}