Exemplo n.º 1
0
 public static void Install(SolutionItem entry, ConfigurationSelector configuration)
 {
     using (IProgressMonitor mon = IdeApp.Workbench.ProgressMonitors.GetRunProgressMonitor()) {
         InstallDialog dlg = new InstallDialog(entry);
         try {
             if (MessageService.RunCustomDialog(dlg) == (int)Gtk.ResponseType.Ok)
             {
                 DeployService.Install(mon, entry, dlg.Prefix, dlg.AppName, configuration);
             }
         } finally {
             dlg.Destroy();
         }
     }
 }
Exemplo n.º 2
0
        public void OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
        {
            //Comment this out to control this setting via web.config compilation debug attribute
            BundleTable.EnableOptimizations = true;

            RegisterJavaScript(BundleTable.Bundles);
            RegisterStyles(BundleTable.Bundles);

            // Generate access.config
            var accessService = new NodeAccessService();
            accessService.GenerateConfigFile();

            // Prepare DB with new updates
            var deployService = new DeployService();
            deployService.Install();
        }