                   messages        :
                     regExp        : "For Application name only lowercase letters are allowed!"
 
-    newAppModal.once "KDObjectWillBeDestroyed", ->
-      newAppModal = null
-      callback? yes
-
   _createChangeLog:(name)->
     today = new Date().format('yyyy-mm-dd')
     {profile} = KD.whoami()


  @compileAppOnServer = (path, callback)->

    app = KodingAppsController.getAppInfoFromPath path

    unless app
      new KDNotificationView
        title : "Failed to find app information from given path"
        type  : "mini"
      return

    loader = new KDNotificationView
      duration : 18000

      type     : "mini"

    {vmController} = KD.singletons
    vmController.run {
      withArgs : "kdc #{app.path}"
      vmName   : app.vm
    }, (err, response)=>

      unless err

