Skip to content
Snippets Groups Projects
Commit 2bdf5aa8 authored by Matt Grau's avatar Matt Grau
Browse files

use production-quality WSGI server

parent a39bc3b9
No related branches found
No related tags found
No related merge requests found
......@@ -51,3 +51,9 @@ npm install parcel-bundler
```bash
npm run-script build
```
## Use a production-quality WSGI server
```bash
pip install waitress
```
import flask
import waitress
from device import Device
device = Device()
......@@ -38,4 +39,4 @@ def resistance():
if __name__ == '__main__':
app.run(host='0.0.0.0', port=8000)
waitress.serve(app, host='0.0.0.0', port=8000)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment