差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
python:gunicorn [2020/04/25 16:21] – [gunicorn 動作確認] ともやん | python:gunicorn [2020/09/11 17:25] (現在) – ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
- | < | ||
- | < | ||
- | #result pre { | ||
- | overflow: scroll; | ||
- | overflow-x: hidden; | ||
- | font-size: 10px; | ||
- | } | ||
- | # | ||
- | height: 400px; | ||
- | overflow: scroll; | ||
- | overflow-x: hidden; | ||
- | font-size: 10px; | ||
- | } | ||
- | #logo { | ||
- | background-color: | ||
- | padding: 15px; | ||
- | } | ||
- | #logo p { | ||
- | margin: 0; | ||
- | } | ||
- | .dokuwiki .plugin_wrap { | ||
- | width: fit-content; | ||
- | } | ||
- | </ | ||
- | </ | ||
====== Gunicorn - Python WSGI HTTP Server for UNIX ====== | ====== Gunicorn - Python WSGI HTTP Server for UNIX ====== | ||
<WRAP #logo> | <WRAP #logo> | ||
行 133: | 行 108: | ||
</ | </ | ||
- | Django のインストール\\ | + | **Django** のインストール\\ |
< | < | ||
(py3dj3_venv) $ pip install django | (py3dj3_venv) $ pip install django | ||
行 149: | 行 124: | ||
Installing collected packages: sqlparse, pytz, asgiref, django | Installing collected packages: sqlparse, pytz, asgiref, django | ||
Successfully installed asgiref-3.2.7 django-3.0.5 pytz-2019.3 sqlparse-0.3.1 | Successfully installed asgiref-3.2.7 django-3.0.5 pytz-2019.3 sqlparse-0.3.1 | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | **Gunicorn** のインストール\\ | ||
+ | < | ||
+ | (py3dj3_venv) $ pip install gunicorn | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | < | ||
+ | Collecting gunicorn | ||
+ | Downloading gunicorn-20.0.4-py2.py3-none-any.whl (77 kB) | ||
+ | | ||
+ | Requirement already satisfied: setuptools> | ||
+ | Installing collected packages: gunicorn | ||
+ | Successfully installed gunicorn-20.0.4 | ||
</ | </ | ||
</ | </ | ||
行 170: | 行 160: | ||
<WRAP prewrap 100%> | <WRAP prewrap 100%> | ||
< | < | ||
- | $ gunicorn --bind :8000 --chdir / | + | $ py3dj3_venv/ |
</ | </ | ||
</ | </ | ||
行 181: | 行 171: | ||
</ | </ | ||
</ | </ | ||
+ | ※Python 仮想環境の Gunicorn を実行すると、仮想環境のパッケージを利用できる。\\ | ||
[[http:// | [[http:// | ||
行 202: | 行 193: | ||
===== 参考文献 ===== | ===== 参考文献 ===== | ||
+ | [[https:// | ||
<ifauth @dokuwikiusers> | <ifauth @dokuwikiusers> | ||
- | [[system_manage: | + | [[system_manage: |
</ | </ | ||