2016-10-25 50 views
1

我正在尝试将新生成的基于react-scripts的应用程序部署到GAE,并且遇到问题。看起来,该构建成功完成,但在部署/“更新服务”期间失败。寻找一些关于如何调试发生的事情的指针,因为我在控制台的错误日志中没有看到任何东西。将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" 
    } 
} 
+0

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

回答

0

我认为你在你的依赖关系中缺少react-scripts。

相关问题