From f1d86f7ac2cb5905c419b6881bddbe8e23578c3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Zatloukal?= Date: Mon, 20 May 2024 14:42:31 +0200 Subject: [PATCH] oraculum: Try more import fun --- roles/openshift-apps/oraculum/templates/deploymentconfig.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/roles/openshift-apps/oraculum/templates/deploymentconfig.yml b/roles/openshift-apps/oraculum/templates/deploymentconfig.yml index f03aff2dd0..994f969a68 100644 --- a/roles/openshift-apps/oraculum/templates/deploymentconfig.yml +++ b/roles/openshift-apps/oraculum/templates/deploymentconfig.yml @@ -20,11 +20,8 @@ spec: containerName: oraculum-api-endpoint # Oraculum would automatically proceed with upgrade_db if necessary # init_db isn't dropping anything, so it's safe to call every time the pod starts - command: ["python", "/opt/app-root/src/oraculum/cli.py", "init_db"] + command: ["python", "-m", "oraculum.cli", "init_db"] # and then just the gunicorn for the frontend part of the backend :) - env: - - name: PYTHONPATH - value: "${PYTHONPATH}:/opt/app-root/src" volumes: - oraculum-secret-volume template: