Add run_without_output to start_db.sh
This commit is contained in:
parent
63f2ccac3e
commit
e24a99eb9d
1 changed files with 7 additions and 1 deletions
|
@ -29,10 +29,16 @@ elif [[ $# == 1 ]] && [[ $1 == "run" ]]; then
|
||||||
python manage.py processupdates
|
python manage.py processupdates
|
||||||
python manage.py runserver
|
python manage.py runserver
|
||||||
popd
|
popd
|
||||||
|
elif [[ $# == 1 ]] && [[ $1 == "run_without_output" ]]; then
|
||||||
|
echo "Processing updates and running server without output"
|
||||||
|
pushd src 2>&1 > /dev/null
|
||||||
|
python manage.py processupdates 2>&1 | (grep -e "^ERROR" -e "^WARNING" -e "^HTTP" || true)
|
||||||
|
python manage.py runserver 2>&1 | (grep -e "^ERROR" -e "^WARNING" -e "^HTTP" || true)
|
||||||
|
popd 2>&1 > /dev/null
|
||||||
elif [[ $# > 0 ]] && [[ $1 == "manage" ]]; then
|
elif [[ $# > 0 ]] && [[ $1 == "manage" ]]; then
|
||||||
pushd src
|
pushd src
|
||||||
python manage.py "${@:2}"
|
python manage.py "${@:2}"
|
||||||
popd
|
popd
|
||||||
else
|
else
|
||||||
echo "Usage: $0 [stop|db|run|manage]"
|
echo "Usage: $0 [stop|db|run|run_without_output|manage]"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue