【问题标题】:AWS ElasticBean WSGIPathAWS Elastic Bean WSGIPath
【发布时间】:2013-03-23 17:20:42
【问题描述】:

我在使用 Python 的 AWS ElasticBean 上的 WSGIPath 有问题。当我设置:

option_settings:
  - namespace: aws:elasticbeanstalk:container:python
    option_name: WSGIPath
    value: wsgi.py

我收到 WSGIPath not found 错误。当我简单地将我的 wsgi.py 重命名为 application.py 并将我的 .ebextensions/myconfig.config 中的 WSGIPath 配置更改为以下内容时,一切都会再次运行。

option_settings:
  - namespace: aws:elasticbeanstalk:container:python
    option_name: WSGIPath
    value: application.py

有人知道吗?

【问题讨论】:

  • issue in the boto repo 对此非常有帮助。似乎它被 .elasticbeanstalk/optionsettings 覆盖了。
  • 你解决过这个问题吗?

标签: amazon-web-services wsgi amazon-elastic-beanstalk


【解决方案1】:

我建议在部署您的配置文件后使用重命名的 wigipath 登录到 ec2,由 beanstalk 创建并检查 wsgi.py 是否真的存在于服务器上。您还可以分析服务器日志。

【讨论】:

  • 谢谢,我试试这个。
  • 不要忘记在环境设置中设置密钥对,以便能够通过 ssh 连接。
猜你喜欢
  • 2012-10-17
  • 2016-08-22
  • 2023-03-12
  • 2016-12-03
  • 2016-02-27
  • 2016-06-22
  • 2022-01-22
  • 2016-12-08
相关资源
最近更新 更多