3

Python を使用した AWS ElasticBean の WSGIPath に問題があります。私が設定したとき:

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

WSGIPath not foundエラーが発生します。wsgi.py の名前を application.py に変更し、WSGIPath 構成を.ebextensions/myconfig.config次のように変更すると、すべてが再び機能します。

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

誰にも手がかりはありますか?

4

1 に答える 1

0

名前を変更したwigipathを使用して、Beanstalkによって作成されたec2にログインし、wsgi.pyが実際にサーバーに存在することを確認して、構成ファイルを展開した後にお勧めします。また、サーバー ログを分析することもできます。

于 2013-04-02T20:15:36.523 に答える