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
Python: Complexity of Os.Path.Exists with a Ext4 Filesystem
Fake Serial Communication Under Linux
Paramiko Error: Error Reading Ssh Protocol Banner
Python: When to Use Pty.Fork() Versus Os.Fork()
Create Single Python Executable Module
Gae " No Attribute 'Httpshandler' " Dev_Appserver.Py
How to Limit the Amount of Time a Function Can Run for (Add a Timeout)
Auto Executable Python File Without Opening from Terminal
Sharing Psycopg2/Libpq Connections Across Processes
How to Split My 800X480 5-Inch Screen into 2 Parts
Python Valueerror: Embedded Null Byte When Reading Png File from Bash Pipe
Python - Can't Open Lib 'Libtdsodbc.So':File Not Found
Cannot Save Matplotlib Animation With Ffmpeg
How to Write Dataframe to Postgres Table
Plt.Figure.Figure.Show() Does Nothing When Not Executing Interactively