I’ve prepared a dashboard using the Dash library in Python. The data is coming in live, and the dashboard is set to refresh every minute. Currently, I can view the output in my browser locally, but I want to run this on a server. How can I deploy it on a server? What kind of server should it be, and what specifications should it have?
Note: The dashboard pulls a maximum of only 100 rows of data per day from a web service.
I haven’t tried it on a server yet because I’m not sure how to do it.
To deploy your Dash dashboard on a server, you can use a cloud service like Heroku, AWS, or a VPS provider. For simplicity, Heroku is a great choice as it offers straightforward deployment for Dash apps. Your server specifications don’t need to be very high, given your dashboard only pulls a maximum of 100 rows of data per day. A basic server instance (e.g., Heroku’s free tier or a small AWS EC2 instance) should suffice. To deploy, you need to create a Procfile specifying the web server (like Gunicorn), push your code to a Git repository, and connect it to Heroku using the Heroku CLI. Ensure your requirements are listed in a requirements.txt file for proper dependency management. This setup should enable your dashboard to refresh every minute and handle live data efficiently.
1