我可以运行我的应用程序在本地使用 dev_appserver.py app.yaml
App Engine的Python的灵活的环境中选择一个运行
我的应用程序的作品。但是,当我尝试部署到应用程序引擎时,出现以下警告:警告:[runtime: python-compat]
已弃用。请改用[runtime: python]
。有关更多信息,请参阅https://cloud.google.com/appengine/docs/flexible/python/migrating。 我尝试使用运行时:python,但是当我这样做没有什么本地工作。另外,当我使用python-compat时,我无法部署到应用程序引擎,我只是得到Updating service [default]
。我正在使用Python 2.7,我应该改变什么来解决我的运行时问题?下面的app.yaml
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
您运行的是哪个版本的SDK? –
Google Cloud SDK [176.0.0] – ACrapProgrammer