Search⌘ K
AI Features

Running the App on the Server

Explore the process of deploying a Dash app by cloning the repository, creating a Python virtual environment, installing dependencies, and running the app on a server. Understand key components like web servers, WSGI middleware, and the Flask framework to successfully run your interactive dashboards in a server environment.

We’ll clone the code and data repository from GitHub, get them to the server, install the dependencies, and try to run the app.

Cloning the application code to the server

We typically have Python already installed on these kinds of servers, but it’s always good to check and know how to get it, just in case it isn’t. An easy way to check if we have it installed, and to get the version in one go, is to run python --version from the command line. Keep in mind that the python command can be interpreted to mean Python 2. The upgrade to Python 3 took a while to get fully implemented, and so, during that time, to differentiate ...