【发布时间】:2017-10-28 23:28:27
【问题描述】:
我可以使用本地运行我的应用程序
dev_appserver.py app.yaml
而且我的应用程序有效。但是,当我尝试部署到应用引擎时,我收到以下警告:警告:[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?
-
谷歌云 SDK [176.0.0]
标签: python-2.7 google-app-engine runtime