aws / aws/aws-eb-python-dockerfiles
WSGI_PATH egrep matches .pyc files
- 主要言語
- 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