Merge branch 'master' into jmorgan_bump_0.4.1

This commit is contained in:
Jeff Morgan 2014-12-09 10:50:04 -08:00
commit d8f87cacb5
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ AppUtil.stop = function (appId) {
AppUtil.remove = function (appId) {
var app = Apps.findOne(appId);
if (app.docker) {
Apps.remove({_id: appId});
Docker.removeContainer(app.docker.Id, function (err) {
var appPath = path.join(Util.KITE_PATH, app.name);
Util.deleteFolder(appPath);