Deploying Dash app as self-hosted

I have a clarification question about deploying my Dash app.

I am using a virtual host from my University that is hosted on the University servers. For this type of hosting, what is the best protocol to follow for deploying the app? Would this fall under Flask’s “self-hosted” options?

If someone could direct to a tutorial I can probably take it from there but being that I am totally new to hosting web apps I am a bit lost on getting started.

If anymore more info is needed to direct me please let me know!

Thank you for your help!

4 Likes

You should be fine following the steps in https://dash.plot.ly/deployment and using gunicorn app:server -b :80 to bind to port 80.

Try that and if you have any further question let us know.

Ok thank you. I guess I can ignore the git instructions as that is tied to Heroku?

yep, you can ignore any Heroku specifics instructions.

There does not seem to be many other instructions aside from the Heroku specifics. Should I look around for a more detailed Gunicorn Flask deployment guide?

No, just pick whatever you need.

Probably just adding:

import dash

app = dash.Dash(__name__)

server = app.server # the Flask app

and doing gunicorn app:server -b :80 is enough.

(Note that you may need superuser privileges in order to bind to port 80. Try first to use another not reserved port.)