Black Lives Matter. Please consider donating to Black Girls Code today.

Deploy dash app to aws ec2

I’m struggling a bit on how to deploy my app. I’m new to flask and WSGI and despite my best attempts to understand the docs, i’m completely lost.

I have an a single file that contains the layout, callbacks, everything. I’m trying to figure out how to package this up and deploy it to an aws ec2. What is the best practice way to do this?

i removed the

if __name__ == '__main__':

from the bottom of my file which is correct for deployment right?

Thanks for the help!

Anyone have any suggestions on this?