4👍
✅
App Engine by default looks for a main.py
file at the root of the app directory with a WSGI-compatible object called app.
The doc here suggests that you may include gunicorn
in your requirements.txt
file if you specify the entrypoint in your app.yaml
file, however the version you want to install seems to conflict with the default one.
To work around this, I’d suggest you to remove both the gunicorn dependency in the requirements.txt file and the entrypoint in your app.yaml and create a main.py file like this:
from thisapp.wsgi import application
app = application
This way it’ll fall back to the default behavior explained above and should work fine. It is also implemented this way in the official sample code.
Source:stackexchange.com