RafaelMiquelino / dash-flask-login

Implementation of Flask-login on top of Dash.
MIT License
247 stars 81 forks source link

Elastic Beanstalk #7

Closed mikeypatt closed 3 years ago

mikeypatt commented 3 years ago

Hi, I would like to upload an app based on your style to elastic beanstalk.

I understand that for that we need two lines application = app.server

And then:

if name == 'main': application.run_server(debug=True, port=8080)

when I try do this by changing "server = app.server" in serve.py to application and then using the above line it doesn't work. I was wondering if you were able to advise how to go about deploying on AWS Elastic Beanstalk.

Many thanks in advance!

mikeypatt commented 3 years ago

It says: application.run_server(debug=False, port=8080) AttributeError: 'Flask' object has no attribute 'run_server'

RafaelMiquelino commented 3 years ago

Hi, I don't know the details of AWS Elastic Beanstalk but as this is a service for serverless deployment, I would say you have to do something similar than the deployment to Heroku. Take a look at the Procfile. This is the entry point for Heroku, it may inspire you.