Merge branch 'master' into jmorgan_bump_0.4.1

This commit is contained in:
Jeff Morgan 2014-12-09 10:38:47 -08:00
commit f4e16f8136
1 changed files with 2 additions and 1 deletions

View File

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