I can run my app locally using
dev_appserver.py app.yaml
And my app works. However, when I try to deploy to app engine, I'm given the following warning: WARNING: [runtime: python-compat]
is deprecated. Please use [runtime: python]
instead. See https://cloud.google.com/appengine/docs/flexible/python/migrating for more info.
I tried using runtime: python, however when I do so nothing works locally. Also, when I use python-compat, I cannot deploy to app engine, I just get Updating service [default]
. I'm using Python 2.7, what should I change to fix my runtime issues? app.yaml below
runtime: python-compat
env: flex
entrypoint: gunicorn -b :$PORT main:app
runtime_config:
python_version: 2
threadsafe: true
handlers:
- url: /.*
script: main.app
- url: /static
static_dir: static
- url: .*
script: main.app