Ensure healthy

This commit is contained in:
Girish Ramakrishnan 2015-07-23 22:48:08 -07:00
parent c2410d9f7b
commit a33d4b0464
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ Cloudron.prototype.waitForApp = function (appId) {
var res = request.get(this._origin + '/api/v1/apps/'+ appId).query({ access_token: this._credentials.accessToken }).end();
verifyResponse(res, 'Could not query app status');
if (res.body.installationState === 'installed' && res.body.runState === 'running') {
if (res.body.installationState === 'installed' && res.body.runState === 'running' && res.body.health === 'healthy') {
console.log();
break;
}