我正在尝试将新生成的基于react脚本的应用程序部署到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: truepackage.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"
}
}发布于 2017-03-10 06:14:34
我认为您的依赖项中缺少反应脚本。
https://stackoverflow.com/questions/40246829
复制相似问题