aws / aws/aws-eb-python-dockerfiles

WSGI_PATH egrep matches .pyc files

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
61
Forks
33
PR merge metrics
No merged PRs in 30d

Description

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$'`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.