Fixed up dig command.

This commit is contained in:
Sean Li 2014-09-03 19:45:34 -07:00
parent fd45571c2e
commit e7426dc6cb
2 changed files with 11 additions and 3 deletions

View File

@ -32,7 +32,11 @@ AppUtil.restartHelper = function (app) {
docker: data docker: data
}}); }});
// Use dig to refresh the DNS // Use dig to refresh the DNS
exec('/usr/bin/dig dig ' + app.name + '.kite @172.17.42.1', function() {}); exec('/usr/bin/dig ' + app.name + '.kite @172.17.42.1', function(err, stdout, stderr) {
console.log(err);
console.log(stdout);
console.log(stderr);
});
}); });
}); });
} }

View File

@ -63,10 +63,14 @@ Docker.runContainer = function (app, image, callback) {
if (err) { callback(err, null); return; } if (err) { callback(err, null); return; }
console.log('Started container: ' + container.id); console.log('Started container: ' + container.id);
// Use dig to refresh the DNS // Use dig to refresh the DNS
exec('/usr/bin/dig dig ' + app.name + '.kite @172.17.42.1', function() {}); exec('/usr/bin/dig ' + app.name + '.kite @172.17.42.1', function(err, stdout, stderr) {
console.log(err);
console.log(stdout);
console.log(stderr);
callback(null, container); callback(null, container);
}); });
}); });
});
}; };
Docker.restartContainer = function (containerId, callback) { Docker.restartContainer = function (containerId, callback) {