Deployment
For convenience, as WSGI compliant symbole is available at webqueu2api.api:app. This can be used with any WSGI server. This project was developed against gunicorn so that is what we recommend.
Development Example
Start a server on localhost:5000 in debug mode.
gunicorn --log-level debug webqueue2.api:app
Production Example
Start a public server on port 5000 in the background with access and error logs written to files.
gunicorn --daemon \
  --access-logfile /var/log/webqueue2api/access.log \ 
  --error-logfile /var/log/webqueue2api/error.log \ 
  webqueue2.api:app
See gunicorn's Docs for more details about configuring gunicorn.