From 0ac1aecb59e62d3501c722d03b0db032ce1ee394 Mon Sep 17 00:00:00 2001 From: 11617 <1161733918@qq.com> Date: Sat, 12 Nov 2022 17:32:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-entrypoint.sh | 8 +++++++- requirements.txt | Bin 1032 -> 1064 bytes 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 84ef691..e91f22b 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,4 +1,10 @@ echo "启动成功" sleep 10 python manage.py migrate -python manage.py runserver 0.0.0.0:8000 \ No newline at end of file +# python manage.py runserver 0.0.0.0:8000 +# /var/log/django.log +/opt/interview/bin/gunicorn \ +--access-logfile \ + --workers 8 \ + --bind unix:/run/gunicorn.sock \ + djangoProject.wsgi:application \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 502797c225826f4342ce4420ef1ee489f258c144..bba756f788235fb0af4c2e7c31b90dbf6773362f 100644 GIT binary patch delta 40 rcmeC+Si!M@gGC{op_CzyA(J7QA)lcL$g%}OBL)KoJqAM{Hedh%vjPVj delta 7 OcmZ3%(ZR8Sg9QKyy8-