Add uwsgi dependency for production deployment

Change-Id: I783368049ff48033e1ea5fda556511a019d3a482
This commit is contained in:
Stanislaw Pitucha 2014-08-27 17:40:51 +01:00
parent e1bba01f72
commit 29adec9e6c
2 changed files with 8 additions and 1 deletions

View File

@ -31,7 +31,13 @@ The service can be run during development with:
.venv/bin/pecan serve --reload config.py
In production, the `--reload` parameter is most likely unnecessary.
In production, the package should be instead installed using:
pip install '.[production]'
And the debug option in `config.py` has to be turned off. Service can be started via the uwsgi server, for example (with 4 processes):
uwsgi --http-socket :5000 --venv /path/to/the/virtualenv --pecan /path/to/config.py -p 4
To test the service, generate the certificate request and submit it using curl:

View File

@ -19,6 +19,7 @@ setup(
'auth_ldap': ['python-ldap'],
'auth_keystone': ['requests'],
'develop': ['watchdog'],
'production': ['uwsgi'],
},
setup_requires=[
'setuptools>=1.0',