How to Deploy a Python Dash Application on an Internal Company Server

How to deploy a Python Dash Application on an internal company server?

The code you are referring to, waitress-serve, is a command-line wrapper bound to the function waitress.serve provided by Waitress.

You run it in your terminal or from a shell script.

Waitress is a production-quality pure-Python WSGI server with very acceptable performance. It has no dependencies except ones which live in the Python standard library. It runs on CPython on Unix and Windows under Python 3.7+.

You can install it with pip install waitress.

@see waitress-serve documentation here.

How to deploy a plotly-dash app on a company internal server so that only company workers can use it?

Updated:

Finally I found a solution to my question above. Basically you can use below code in your terminal:

 waitress-serve --host=0.0.0.0 --port=8080  appname:app.server

Here you use your own host and port numbers.

How to access a Plotly-Dash app server via LAN

I think your app.py currently should have something like:

if __name__ == '__main__':
app.run_server(debug=False)

Try replacing this with app.run_server(host= '0.0.0.0',debug=False)
Now on the LAN browser, you should be able to access with the ip address of the server that you are running the dash app.

Also, you may want to check which port is used by this server for broadcast.



Related Topics



Leave a reply



Submit