Use dedicated script to pre deploy actions
This commit is contained in:
parent
9b0e7e8a15
commit
a3d47d74cc
2 changed files with 7 additions and 1 deletions
|
@ -161,7 +161,7 @@
|
||||||
"execNewPod": {
|
"execNewPod": {
|
||||||
"containerName": "django",
|
"containerName": "django",
|
||||||
"command": [
|
"command": [
|
||||||
"./manage.py migrate"
|
"./scripts/pre_deploy.sh"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
6
scripts/pre_deploy.sh
Executable file
6
scripts/pre_deploy.sh
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# enable SCL
|
||||||
|
source .bashrc
|
||||||
|
|
||||||
|
./manage.py migrate
|
Loading…
Reference in a new issue