Rewrite setup to use overmind

This commit is contained in:
Andreas Zweili 2023-07-13 23:48:43 +02:00
parent f82c2bcc23
commit 311f2313e4
1 changed files with 3 additions and 1 deletions

4
dev.sh
View File

@ -8,6 +8,7 @@ run () {
}
setup () {
overmind start -l db -D
if [ -f .second_run ]; then
sleep 2
python ./src/manage.py collectstatic --noinput
@ -33,7 +34,8 @@ setup () {
python ./src/manage.py loaddata nets
python ./src/manage.py loaddata softwares
python ./src/manage.py shell -c "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('admin', 'admin@example.com', 'password')"
touch .second_run
touch .direnv/.second_run
overmind quit
fi
}