Fixing but where app would not be deleted

This commit is contained in:
Jeff Morgan 2014-12-09 10:37:07 -08:00
parent 1ab568b3ea
commit aeffbc305d
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});
}
};