From 6d3ad6fec1425104a35f0107489b48f30bbe439c Mon Sep 17 00:00:00 2001 From: Jeffery Date: Mon, 23 Jun 2025 06:08:32 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E7=9F=A5=E8=AD=98?= =?UTF-8?q?=E5=BA=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- %E7%9F%A5%E8%AD%98%E5%BA%AB.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/%E7%9F%A5%E8%AD%98%E5%BA%AB.md b/%E7%9F%A5%E8%AD%98%E5%BA%AB.md index 19e73fc..31596d0 100644 --- a/%E7%9F%A5%E8%AD%98%E5%BA%AB.md +++ b/%E7%9F%A5%E8%AD%98%E5%BA%AB.md @@ -24,4 +24,18 @@ ALLOWED_HOSTS = [ "192.168.30.107" ] ```bash python3 manage.py runserver 0.0.0.0:8000 +``` + +生產模式(wsgi) + +使用 gunicorn + +```bash +pip3 install gunicorn +``` + +透過 gunicorn 啟動 + +```bash +gunicorn --bind 0.0.0.0:8000 mysite.wsgi:application ``` \ No newline at end of file