Changes to start_db.sh and install.sh

This commit is contained in:
Fabio Giovanazzi 2025-08-01 23:33:35 +02:00
parent 603329fbda
commit 890d41b9d0
No known key found for this signature in database
GPG key ID: 4BDF1B40A49FDD23
2 changed files with 6 additions and 2 deletions

View file

@ -3,7 +3,7 @@ set -e
python3 -m venv .env
source ./.env/bin/activate
pip install -r src/requirements/production.txt -r src/requirements/dev.txt
pip install psycopg2
pip install psycopg2 pylibmc
sudo pacman -Sy librsvg
./start_db.sh db

View file

@ -29,6 +29,10 @@ elif [[ $# == 1 ]] && [[ $1 == "run" ]]; then
python manage.py processupdates
python manage.py runserver
popd
elif [[ $# > 0 ]] && [[ $1 == "manage" ]]; then
pushd src
python manage.py "${@:2}"
popd
else
echo "Usage: $0 [stop|db|run]"
echo "Usage: $0 [stop|db|run|manage]"
fi