mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2024-11-17 04:09:25 +08:00
Revert to Granian and remove bind mount for static files as that seems to just result in crashes
This commit is contained in:
parent
8de2c6936b
commit
0e902b1f04
2 changed files with 3 additions and 4 deletions
|
@ -10,8 +10,6 @@ services:
|
|||
environment:
|
||||
- PYTHONBUFFERED=1
|
||||
- RUN_TYPE=web
|
||||
volumes:
|
||||
- ./backend/static:/code/backend/static
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
|
|
5
start.sh
5
start.sh
|
@ -13,8 +13,9 @@ if [ "$RUN_TYPE" = "web" ]; then
|
|||
if [ "$BACKEND_DEBUG" = 'True' ]; then
|
||||
python manage.py runserver "0.0.0.0:8000"
|
||||
else
|
||||
gunicorn --workers 8 --bind 0.0.0.0:8000 config.wsgi:application
|
||||
# python -m granian --host 0.0.0.0 --port 8000 --workers 8 --interface wsgi config.wsgi:application
|
||||
# Feel free to replace the WSGI server here with something else
|
||||
# gunicorn --workers 8 --bind 0.0.0.0:8000 config.wsgi:application # Gunicorn
|
||||
python -m granian --host 0.0.0.0 --port 8000 --workers 8 --interface wsgi config.wsgi:application # Granian
|
||||
fi
|
||||
elif [ "$RUN_TYPE" = "worker" ]; then
|
||||
celery -A config worker -l INFO -E --concurrency 1
|
||||
|
|
Loading…
Reference in a new issue