Pulling my hair out! I am trying to deploy a Python FLask application to AWS Elastic Beanstalk and I am getting the error
Target WSGI script '/opt/python/current/app/application.py' does not contain WSGI application 'application'
The web page is just returning a 500 Server error
the content of my application.py is as follows:
#!/usr/bin/env python3
import connexion
if __name__ == '__main__':
application = connexion.App(__name__, specification_dir='./swagger/')
application.add_api('swagger.yaml', arguments={'title': 'This is a basic API fascade to theprotptype development robot. The API front-ends the communication with an MQTT pub/sub topic, which uses the Amazon Web Services IoT service.'})
application.run()
Runs fine locally, but no good when I upload to AWS. I have changed the name from app.py to application.py and changed the app = to application = but no change
Don't know where to go next :(