0

I can run my application on localhost without an issue, but as soon as I upload it to AWS EB, I get the 500 Internal Server Error.

Here is my app/__init__.py file:

from flask import Flask

app = Flask(__name__)

And my application.py file:

from app import app

if __name__ == '__main__':
    app.run(host='0.0.0.0', port='8080', use_reloader=True, debug=True)

Is there a misconfiguration?

Senrab
  • 257
  • 1
  • 13

1 Answers1

0

The issue is that AWS EB expects:

application = Flask(__name__)

Solution:

application = app = Flask(__name__)
Senrab
  • 257
  • 1
  • 13