waitress-serve

waitress-serve

TLDR

Run a Python web app

>_ waitress-serve [import.path:wsgi_func]
copy

Listen on port 8080 on localhost

>_ waitress-serve --listen=[localhost]:[8080] [import.path:wsgi_func]
copy

Start waitress on a Unix socket

>_ waitress-serve --unix-socket=[path/to/socket] [import.path:wsgi_func]
copy

Use 4 threads to process requests

>_ waitress-serve --threads=[4] [import.path:wsgifunc]
copy

Call a factory method that returns a WSGI object

>_ waitress-serve --call [import.path.wsgi_factory]
copy

Set the URL scheme to https

>_ waitress-serve --url-scheme=[https] [import.path:wsgi_func]
copy

Copied to clipboard
free 100$ digital ocean credit