From 188e66209d4c9fb368d0312f76c07ec94453dc75 Mon Sep 17 00:00:00 2001 From: Sean Li Date: Thu, 28 Aug 2014 13:38:18 -0700 Subject: [PATCH] Added code to check if web port is disabled. --- meteor/collections/apps.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meteor/collections/apps.js b/meteor/collections/apps.js index 9ac599e4ce..7c4373aba0 100755 --- a/meteor/collections/apps.js +++ b/meteor/collections/apps.js @@ -64,6 +64,8 @@ Apps.helpers({ var image = Images.findOne(app.imageId); if (image && image.meta.app && image.meta.app.webPort) { return 'http://' + app.name + '.dev:' + image.meta.app.webPort; + } else if (image && image.meta.app && image.meta.app.webPort === false) { + return null; } else { // Picks the best port if (app.docker && app.docker.NetworkSettings.Ports) {