更新 知識庫
@@ -24,4 +24,18 @@ ALLOWED_HOSTS = [ "192.168.30.107" ]
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
python3 manage.py runserver 0.0.0.0:8000
|
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
|
||||||
```
|
```
|
||||||
Reference in New Issue
Block a user