(host="0.0.0.0", port="8000", theads=3, cert="", key="")
| 143 | |
| 144 | |
| 145 | def run_threaded(host="0.0.0.0", port="8000", theads=3, cert="", key=""): |
| 146 | from wsgiserver import CherryPyWSGIServer |
| 147 | |
| 148 | if cert and key: |
| 149 | CherryPyWSGIServer.ssl_certificate = cert |
| 150 | CherryPyWSGIServer.ssl_private_key = key |
| 151 | |
| 152 | CherryPyWSGIServer.numthreads = theads |
| 153 | |
| 154 | from utils import CherryPyWSGI |
| 155 | |
| 156 | run(app=web, host=host, port=port, server=CherryPyWSGI, quiet=True) |
| 157 | |
| 158 | |
| 159 | def run_fcgi(host="0.0.0.0", port="8000"): |