From a33d4b0464ac0d056aaeb54c6e5b86677046d2f3 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 23 Jul 2015 22:48:08 -0700 Subject: [PATCH] Ensure healthy --- cloudron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudron.js b/cloudron.js index 36d2d55..6cf2f62 100644 --- a/cloudron.js +++ b/cloudron.js @@ -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; }