Add uwsgi dependency for production deployment
Change-Id: I783368049ff48033e1ea5fda556511a019d3a482
This commit is contained in:
parent
e1bba01f72
commit
29adec9e6c
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue