diff --git a/roles/openshift-apps/testdays/templates/deploymentconfig.yml b/roles/openshift-apps/testdays/templates/deploymentconfig.yml index f3b07da197..3960d8beb9 100644 --- a/roles/openshift-apps/testdays/templates/deploymentconfig.yml +++ b/roles/openshift-apps/testdays/templates/deploymentconfig.yml @@ -18,8 +18,10 @@ spec: failurePolicy: Abort execNewPod: containerName: testdays - command: ["python", "/opt/app-root/src/testdays/cli.py", "init_db"] -# command: ["python", "/opt/app-root/src/testdays/cli.py", "upgrade_db"] +# 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"] + command: ["python", "/opt/app-root/src/testdays/cli.py", "upgrade_db"] template: metadata: labels: