【问题标题】:Error deploying react-scripts application to GAE将 react-scripts 应用程序部署到 GAE 时出错
【发布时间】:2016-10-25 18:10:30
【问题描述】:

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

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"
  }
}

【问题讨论】:

  • 回滚到之前成功的部署配置并逐步应用您的更改以揭示问题

标签: node.js google-app-engine reactjs react-scripts


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-05-16
    • 1970-01-01
    • 2020-04-22
    • 2019-04-03
    • 2012-01-24
    • 2017-08-04
    相关资源
    最近更新 更多