Improve start_db.sh again

This commit is contained in:
Fabio Giovanazzi 2025-08-02 01:20:52 +02:00
parent e646dd9d83
commit 2804fd4104
No known key found for this signature in database
GPG key ID: 4BDF1B40A49FDD23

View file

@ -32,8 +32,8 @@ elif [[ $# == 1 ]] && [[ $1 == "run" ]]; then
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 -v "^DEBUG " || true)
python manage.py runserver 2>&1 | (grep -v "^DEBUG " || true)
python manage.py processupdates 2>&1 | (grep -vE '^(INFO|DEBUG)|__debug__' || true)
python manage.py runserver 2>&1 | (grep -vE '^(INFO|DEBUG)|__debug__' || true)
popd 2>&1 > /dev/null
elif [[ $# > 0 ]] && [[ $1 == "manage" ]]; then
pushd src