Changes to start_db.sh and install.sh
This commit is contained in:
parent
603329fbda
commit
890d41b9d0
2 changed files with 6 additions and 2 deletions
|
@ -3,7 +3,7 @@ set -e
|
||||||
python3 -m venv .env
|
python3 -m venv .env
|
||||||
source ./.env/bin/activate
|
source ./.env/bin/activate
|
||||||
pip install -r src/requirements/production.txt -r src/requirements/dev.txt
|
pip install -r src/requirements/production.txt -r src/requirements/dev.txt
|
||||||
pip install psycopg2
|
pip install psycopg2 pylibmc
|
||||||
sudo pacman -Sy librsvg
|
sudo pacman -Sy librsvg
|
||||||
|
|
||||||
./start_db.sh db
|
./start_db.sh db
|
||||||
|
|
|
@ -29,6 +29,10 @@ elif [[ $# == 1 ]] && [[ $1 == "run" ]]; then
|
||||||
python manage.py processupdates
|
python manage.py processupdates
|
||||||
python manage.py runserver
|
python manage.py runserver
|
||||||
popd
|
popd
|
||||||
|
elif [[ $# > 0 ]] && [[ $1 == "manage" ]]; then
|
||||||
|
pushd src
|
||||||
|
python manage.py "${@:2}"
|
||||||
|
popd
|
||||||
else
|
else
|
||||||
echo "Usage: $0 [stop|db|run]"
|
echo "Usage: $0 [stop|db|run|manage]"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue