aws / aws/aws-eb-python-dockerfiles

WSGI_PATH egrep matches .pyc files

未关闭
#2 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Shell
星标
61
派生
33
PR 合并指标
30 天内没有已合并 PR

描述

Referring to this line:
https://github.com/aws/aws-eb-python-dockerfiles/blob/master/3.4.2-aws-eb-onbuild/uwsgi-start.sh#L9

WSGI_PATH=`find /var/app | egrep '/var/app/[^/]+/wsgi.py'`

If you run the command after .pyc have been compiled you get the results:

./mysite/wsgi.py
./mysite/wsgi.pyc

Which means the uwsgi command is set as:

uwsgi --http :8080 --wsgi-file mysite/wsgi.py mysite/wsgi.pyc

Which obviously fails. Ideally two things need to be updated:

1) Readme/instructions to clearly state .dockerignore file should contain .pyc (so pyc files aren't copied across)
2) Original command should be updated (to not match pyc files) e.g.

WSGI_PATH=`find /var/app | egrep '/var/app/[^/]+/wsgi.py$'`

贡献指南

打开贡献指南

调研方向

Start with 3.4.2-aws-eb-onbuild/uwsgi-start.sh at the WSGI_PATH command referenced in the issue, then review the repository README or instructions for .dockerignore guidance. Verify that compiled .pyc files no longer produce an extra WSGI path and that the instructions clearly cover excluding them.

由索引模型根据 Issue 内容生成。

评估

技术栈
docker, python, shell
领域
devops
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。