Browse Source

Use dedicated script to pre deploy actions

pull/2/merge
Rodolfo Carvalho 10 years ago
parent
commit
a3d47d74cc
2 changed files with 7 additions and 1 deletions
  1. +1
    -1
      application-template.json
  2. +6
    -0
      scripts/pre_deploy.sh

+ 1
- 1
application-template.json View File

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


+ 6
- 0
scripts/pre_deploy.sh View File

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

Loading…
Cancel
Save