How to deploy structured Flask app on AWS elastic beanstalk

后端 未结 7 1401
猫巷女王i
猫巷女王i 2020-12-08 03:05

After successfully deploying a test app using the steps outlined here: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Python_flask.html

I tried

7条回答
  •  Happy的楠姐
    2020-12-08 04:00

    Add the following to .ebextensions/.config:

    option_settings:
      "aws:elasticbeanstalk:container:python":
        WSGIPath: myApp/handlers/views.py
    

    Update:

    If you don't have .ebextensions directory, please create one for the project. You can find more information of what can be done regarding the container configuration in Customizing and Configuring AWS Elastic Beanstalk Environments guide.

提交回复
热议问题