oraculum: Try more import fun

This commit is contained in:
František Zatloukal 2024-05-20 14:42:31 +02:00
parent de9aecb407
commit f1d86f7ac2

View file

@ -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: