Ensure healthy
This commit is contained in:
parent
c2410d9f7b
commit
a33d4b0464
@ -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();
|
var res = request.get(this._origin + '/api/v1/apps/'+ appId).query({ access_token: this._credentials.accessToken }).end();
|
||||||
verifyResponse(res, 'Could not query app status');
|
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();
|
console.log();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user