diff --git a/application-template.json b/application-template.json index 5008090e..0b95b38b 100644 --- a/application-template.json +++ b/application-template.json @@ -161,7 +161,7 @@ "execNewPod": { "containerName": "django", "command": [ - "./manage.py migrate" + "./scripts/pre_deploy.sh" ] } } diff --git a/scripts/pre_deploy.sh b/scripts/pre_deploy.sh new file mode 100755 index 00000000..3caf7536 --- /dev/null +++ b/scripts/pre_deploy.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +# enable SCL +source .bashrc + +./manage.py migrate