gpt4 book ai didi

node.js - 将 react 脚本应用程序部署到 GAE 时出错

转载 作者:太空宇宙 更新时间:2023-11-04 00:32:59 26 4
gpt4 key购买 nike

我正在尝试将新生成的基于 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: 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"
}
}

最佳答案

我认为您的依赖项中缺少 react 脚本。

关于node.js - 将 react 脚本应用程序部署到 GAE 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40246829/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com