Wednesday, July 13, 2022

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

Issue

I am doing a project for a company where I work. I created a Python Dash app on my work laptop using Jupyter and it works fine. Now I want to deploy the app on the company's local server, so I need all users in our company to be able to view it. But I don't want to use any web-based service (Heroku, etc.) as the data is confidential and sensitive. So, I want it to run from the local server and be accessible by anyone that wants to use it within the company.

What is the way of doing this?

In order to run the app I am using code below.

# Run the app

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

Solution

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.



Answered By - Nariman Pashayev
Answer Checked By - Robin (PHPFixing Admin)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.