Added code to check if web port is disabled.

This commit is contained in:
Sean Li 2014-08-28 13:38:18 -07:00
parent d0c6939ad6
commit 188e66209d
1 changed files with 2 additions and 0 deletions

View File

@ -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) {