2016-10-25 51 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。

相關問題