This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
services:
|
||||
backend:
|
||||
build: ./backend
|
||||
# 使用 gunicorn 替代 runserver,提高稳定性,并捕获标准输出
|
||||
# 使用 gunicorn 替代 runserver,提高稳定性,并捕获标准输出1
|
||||
command: sh -c "python manage.py collectstatic --noinput && python manage.py migrate && gunicorn --bind 0.0.0.0:8000 --access-logfile - --error-logfile - config.wsgi:application"
|
||||
volumes:
|
||||
- ./backend:/app
|
||||
|
||||
Reference in New Issue
Block a user