We should provide instructions and eventually make adjustments to allow running the Dashboard in production with gunicorn web server, rather than Flask web server (flask run), which is very suitable for development but not delivers good performance and robustness.
See more discussion on this topic on Flask's documentation:
I suggest we go with gunicorn, which is also a WSGI server and this seems to be a more smooth transition.
Initial tests showed that web sockets were broken when using gunicorn though. Maybe something to do with proxy_allow_ips
We should provide instructions and eventually make adjustments to allow running the Dashboard in production with
gunicornweb server, rather than Flask web server (flask run), which is very suitable for development but not delivers good performance and robustness.See more discussion on this topic on Flask's documentation:
I suggest we go with gunicorn, which is also a WSGI server and this seems to be a more smooth transition.
Initial tests showed that web sockets were broken when using
gunicornthough. Maybe something to do withproxy_allow_ips