diff --git a/Makefile b/Makefile index 0eaf530..778c223 100644 --- a/Makefile +++ b/Makefile @@ -73,8 +73,8 @@ clean: web: python setup.py develop # or `install` # isso -c config/comments.comment.sh.cfg run - gunicorn --pid=/app/storage/gunicorn.pid -w 4 -b 0.0.0.0:5000 isso.dispatch - + # gunicorn --pid=/app/storage/gunicorn.pid -w 4 -b 0.0.0.0:5000 isso.dispatch + uwsgi uswgi2.ini .PHONY: clean site man init js coverage test web diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 7496fc4..0000000 --- a/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -gunicorn==19.7.1 diff --git a/setup.py b/setup.py index ef866fe..c44b92d 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ import sys from setuptools import setup, find_packages requires = ['html5lib==0.9999999', 'itsdangerous', 'Jinja2', - 'misaka>=1.0,<2.0', 'werkzeug>=0.9'] + 'misaka>=1.0,<2.0', 'werkzeug>=0.9', 'uwsgi'] if sys.version_info < (2, 7): raise SystemExit("Python 2 versions < 2.7 are not supported.") diff --git a/uswgi2.ini b/uswgi2.ini new file mode 100644 index 0000000..1ff2ad2 --- /dev/null +++ b/uswgi2.ini @@ -0,0 +1,12 @@ +[uwsgi] +http = :5000 +master = true +; set to `nproc` +processes = 4 +cache2 = name=hash,items=1024,blocksize=32 +; you may change this +module = isso.dispatch +lazy-apps = true +touch-chain-reload = /app/storage/uwsgi-reload.ini +; uncomment if you use a virtual environment +; virtualenv = /path/to/isso