Skip to main content
 首页 » 编程设计

Python谷歌应用引擎灵活

2025年05月04日30linjiqin

我使用本教程创建简单的 hello world 应用程序 https://cloud.google.com/appengine/docs/flexible/python/hello-world 我正在尝试使用控制台部署应用程序

gcloud config set project [myId] 
gcloud config set account xxxx@gmail.com 
cloud preview app deploy app.yaml 

最后控制台写入错误

Error Response: [13] Timed out when starting VMs. It's possible that the application code is unhealthy. (0/2 ready, 2 still deploying).

请您参考如下方法:

此错误表示您的应用程序未能正确启动(“应用程序代码可能不健康。”)。

托管 VM 依赖于您的应用程序响应“健康检查”以确定何时将流量发送到您的应用程序的该版本。这些“健康检查”是一个 HTTP 端点,托管 VM 基础架构将经常检查该端点以获得“一切正常”的响应。

入门教程包含工作代码,因此您可能在文件结构中引入了拼写错误或错误。检查http://console.developers.google.com/并导航至“日志记录”部分以检查您的应用程序日志以获取有关可能出现问题的线索。