我正在尝试将新生成的基于 react-scripts 的应用程序部署到 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).
应用程序.yaml:
runtime: nodejs
vm: true
包.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"
}
}