start.sh use daphne. Ignore extra files
This commit is contained in:
parent
9bf3f20f24
commit
c9400e8f9e
@ -7,6 +7,7 @@
|
||||
*.sql.gz
|
||||
*.sqlite3
|
||||
.cache
|
||||
.env
|
||||
.project
|
||||
.idea
|
||||
.pydevproject
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,6 +11,7 @@ __pycache__/
|
||||
local_settings.py
|
||||
db.sqlite3
|
||||
db.sqlite3-journal
|
||||
db/
|
||||
media/
|
||||
|
||||
# If your build process includes running collectstatic, then you probably don't need or want to include staticfiles/
|
||||
|
7
start.sh
7
start.sh
@ -1,9 +1,6 @@
|
||||
|
||||
cd /access_controller/
|
||||
|
||||
if [ ! -f "/access_controller/db/zd_db.sqlite3" ]; then
|
||||
python manage.py migrate
|
||||
fi
|
||||
python manage.py migrate
|
||||
|
||||
python manage.py collectstatic --noinput
|
||||
python manage.py runserver 0.0.0.0:8000
|
||||
daphne -b 0.0.0.0 access_controller.asgi:application
|
||||
|
Loading…
x
Reference in New Issue
Block a user