Deploying a Dash app with Gunicorn on Ubuntu+Nginx

I’ve been following the outline of tutorial on deploying a flask app on nginx / ubuntu, and trying to deploy a Dash app.

When trying the command gunicorn --bind wsgi:app I get the error: Application object must be callable

The way I am invoking the app is:

from __init__ import app

if __name__ == "__main__":



if __name__ == '__main__':

The app itself is declared in

import dash

app = dash.Dash(__name__, suppress_callback_exceptions=True)
server = app.server

I suspect the gunicorn command needs to be modified to refer to server instead of just wsgi:app but am unsure what the right format is


Addition: When I run the app using python3 it fires up, but I cannot access it on the droplet’s IP address ip:5000

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!