|
|
@ -9,6 +9,19 @@ source .bashrc |
|
|
|
|
|
|
|
|
set -e |
|
|
set -e |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Support for Django |
|
|
|
|
|
|
|
|
|
|
|
# Take shallowest manage.py script |
|
|
|
|
|
MANAGE_FILE=$(find . -maxdepth 3 -type f -name 'manage.py' -printf '%d\t%P\n' | sort -nk1 | cut -f2 | head -1) |
|
|
|
|
|
|
|
|
|
|
|
if pip show -q django && [ -f "$MANAGE_FILE" ]; then |
|
|
|
|
|
set -x |
|
|
|
|
|
python $MANAGE_FILE migrate --noinput |
|
|
|
|
|
set +x |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export APP_FILE=${APP_FILE:-"app.py"} |
|
|
export APP_FILE=${APP_FILE:-"app.py"} |
|
|
|
|
|
|
|
|
if [[ ! -v APP_MODULE && -f setup.py ]]; then |
|
|
if [[ ! -v APP_MODULE && -f setup.py ]]; then |
|
|
|