start.sh use daphne. Ignore extra files
This commit is contained in:
parent
9bf3f20f24
commit
c9400e8f9e
@ -7,6 +7,7 @@
|
|||||||
*.sql.gz
|
*.sql.gz
|
||||||
*.sqlite3
|
*.sqlite3
|
||||||
.cache
|
.cache
|
||||||
|
.env
|
||||||
.project
|
.project
|
||||||
.idea
|
.idea
|
||||||
.pydevproject
|
.pydevproject
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -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/
|
||||||
|
5
start.sh
5
start.sh
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user