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?
The issue is that AWS EB expects:
application = Flask(__name__)
Solution:
application = app = Flask(__name__)