start.sh use daphne. Ignore extra files

This commit is contained in:
Iurii Tatishchev 2021-04-08 22:34:20 -07:00
parent 9bf3f20f24
commit c9400e8f9e
Signed by: CaZzzer
GPG Key ID: 926BE949E29DCD03
3 changed files with 4 additions and 5 deletions

View File

@ -7,6 +7,7 @@
*.sql.gz *.sql.gz
*.sqlite3 *.sqlite3
.cache .cache
.env
.project .project
.idea .idea
.pydevproject .pydevproject

1
.gitignore vendored
View File

@ -11,6 +11,7 @@ __pycache__/
local_settings.py local_settings.py
db.sqlite3 db.sqlite3
db.sqlite3-journal db.sqlite3-journal
db/
media/ media/
# If your build process includes running collectstatic, then you probably don't need or want to include staticfiles/ # If your build process includes running collectstatic, then you probably don't need or want to include staticfiles/

View File

@ -1,9 +1,6 @@
cd /access_controller/ cd /access_controller/
if [ ! -f "/access_controller/db/zd_db.sqlite3" ]; then python manage.py migrate
python manage.py migrate
fi
python manage.py collectstatic --noinput python manage.py collectstatic --noinput
python manage.py runserver 0.0.0.0:8000 daphne -b 0.0.0.0 access_controller.asgi:application