1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 19:05:59 +02:00

gunicorn: moved into common, added website (#4226)

This commit is contained in:
Giorgio Vilardo 2020-07-28 05:36:11 +02:00 committed by GitHub
parent db505aacf0
commit 867bb333ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 27 deletions

View file

@ -1,6 +1,7 @@
# gunicorn
> Python WSGI HTTP Server.
> More information: <https://gunicorn.org/>.
- Run Python web app:

View file

@ -1,27 +0,0 @@
# gunicorn
> Python WSGI HTTP Server.
- Run Python web app:
`gunicorn {{import.path:app_object}}`
- Listen on port 8080 on localhost:
`gunicorn --bind {{localhost}}:{{8080}} {{import.path:app_object}}`
- Turn on live reload:
`gunicorn --reload {{import.path:app_object}}`
- Use 4 worker processes for handling requests:
`gunicorn --workers {{4}} {{import.path:app_object}}`
- Use 4 worker threads for handling requests:
`gunicorn --threads {{4}} {{import.path:app_object}}`
- Run app over HTTPS:
`gunicorn --certfile {{cert.pem}} --keyfile {{key.pem}} {{import.path:app_object}}`