Use dedicated script to pre deploy actions

This commit is contained in:
Rodolfo Carvalho 2015-05-19 17:37:48 +02:00
parent 9b0e7e8a15
commit a3d47d74cc
2 changed files with 7 additions and 1 deletions

View File

@ -161,7 +161,7 @@
"execNewPod": {
"containerName": "django",
"command": [
"./manage.py migrate"
"./scripts/pre_deploy.sh"
]
}
}

6
scripts/pre_deploy.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
# enable SCL
source .bashrc
./manage.py migrate