【问题标题】:elasticbeanstalk checking the config file outputelasticbeanstalk 检查配置文件输出
【发布时间】:2015-07-09 12:51:16
【问题描述】:

非常感谢您的洞察力和指导。我终于设法用亚马逊的 elasticbeanstalk 设置了我的 python-django 项目。除了 collectstatic 命令之外的所有工作似乎都没有运行,因为我在所有静态内容上都得到 404。 我一直在检查日志和 sshing 以找出问题所在,但还没有运气……这是我的配置文件:

container_commands:
 00_echo:
  command: "echo Baaaaaaa!!!!"
 01_collectstatic:
  command: "source /opt/python/run/venv/bin/activate && python myapp/manage.py collectstatic --noinput"

option_settings:
 "aws:elasticbeanstalk:application:environment":
  DJANGO_SETTINGS_MODULE: "myapp.settings"
   "PYTHONPATH": "/opt/python/current/app/vitagina:$PYTHONPATH"
 "aws:elasticbeanstalk:container:python":
  WSGIPath: myapp/myapp/wsgi.py
  NumProcesses: 1
  NumThreads: 18
 "aws:elasticbeanstalk:container:python:staticfiles":
  "/static/": "www/static/"

我应该能够看到“Baaaaa!”吗?在某处的日志中?如何检查以确保我的命令实际运行?

非常感谢

【问题讨论】:

  • 不走运看到我的 Baaa 回声!但我意识到我遇到了一个主要问题,我没有将我的配置文件放在 .ebextension 文件夹中。希望这对某人有所帮助......不要自我,阅读友好手册!

标签: python django amazon-web-services config amazon-elastic-beanstalk


【解决方案1】:

您可以在 /var/log/eb-commandprocessor.log 和 /var/log/eb-activity.log 中查找日志,以查看执行了哪些命令以及结果。

【讨论】:

    猜你喜欢
    • 2016-12-25
    • 2014-01-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-14
    • 1970-01-01
    相关资源
    最近更新 更多