更新 知識庫
@@ -25,3 +25,17 @@ 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
|
||||
```
|
||||
Reference in New Issue
Block a user