Skip to content

Commit

Permalink
[ADD] project runner for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdiirh committed Apr 30, 2024
1 parent 87cd0e3 commit 760bc58
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env sh

while ! ./manage.py sqlflush > /dev/null 2>&1; do
echo "Waiting for mysql..."
sleep 2
done

python manage.py migrate --no-input
python manage.py test --no-input --failfast
python manage.py create_first_admin
#python manage.py create_base_configs
#python manage.py create_permissions
python manage.py runserver 0.0.0.0:8000 --insecure

0 comments on commit 760bc58

Please sign in to comment.