我试图将新生成的基于反应脚本的应用程序部署到GAE并遇到问题。看起来好像构建成功完成但在部署期间失败/'更新服务'。寻找关于如何调试发生的事情的一些指示,因为我在控制台的错误日志中看不到任何内容。
以下是构建的最后一部分的输出:
Step 5 : CMD npm start
---> Running in b930fc7e35e6
---> 2d0d24685054
Removing intermediate container b930fc7e35e6
Successfully built 2d0d24685054
以下是我在服务更新期间看到的错误:
Updating service [default]...failed.
ERROR: (gcloud.app.deploy) Error Response: [13] Timed out when starting VMs. It's possible that the application code is unhealthy. (0/2 ready, 2 still deploying).
的app.yaml:
runtime: nodejs
vm: true
的package.json:
{
"name": "venue-web",
"version": "0.1.0",
"private": true,
"engines": {
"node": "~6.8"
},
"devDependencies": {
"react-scripts": "0.7.0"
},
"dependencies": {
"react": "^15.3.2",
"react-dom": "^15.3.2"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"deploy": "gcloud app deploy --project venue-web"
}
}
答案 0 :(得分:1)
我认为您缺少依赖项中的react脚本。