差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン最新のリビジョン両方とも次のリビジョン | ||
python:gunicorn [2020/04/25 16:23] – [参考文献] ともやん | python:gunicorn [2020/04/26 09:07] – ともやん | ||
---|---|---|---|
行 133: | 行 133: | ||
</ | </ | ||
- | Django のインストール\\ | + | **Django** のインストール\\ |
< | < | ||
(py3dj3_venv) $ pip install django | (py3dj3_venv) $ pip install django | ||
行 149: | 行 149: | ||
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: | 行 185: | ||
<WRAP prewrap 100%> | <WRAP prewrap 100%> | ||
< | < | ||
- | $ gunicorn --bind :8000 --chdir / | + | $ py3dj3_venv/ |
</ | </ | ||
</ | </ | ||
行 181: | 行 196: | ||
</ | </ | ||
</ | </ | ||
+ | ※Python 仮想環境の Gunicorn を実行すると、仮想環境のパッケージを利用できる。\\ | ||
[[http:// | [[http:// | ||
行 202: | 行 218: | ||
===== 参考文献 ===== | ===== 参考文献 ===== | ||
+ | [[https:// | ||
<ifauth @dokuwikiusers> | <ifauth @dokuwikiusers> | ||
[[system_manage: | [[system_manage: | ||
</ | </ | ||