Merge pull request #129 from kitematic/jmorgan_fix_app_sync

Putting back App object removal
This commit is contained in:
Jeffrey Morgan 2014-12-09 10:49:12 -08:00
commit 8058c39120
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);