You are here

Auto-deploying modules

This topic describes how share extensibility modules can be deployed automatically.

While it is possible to deploy Share extensibility modules manually using the page http://host:8080/share/page/modules/deploy, it is also possible to have them deployed automatically. Automatic deployment can happen in two ways, either all modules are deployed automatically, or they are deployed automatically if the module requests it. This can be summarized as:

  1. All Share extensibility modules are automatically deployed
  2. All Share extensibility modules are manually deployed
  3. All Share extensibilitys modules are manually deployed, except for those modules that request to be deployed automatically. This is the default configuration.

In the file tomcat/webapps/share/WEB-INF/classes/alfresco/share-config.xml of a standard Alfresco install, you will find the following XML:

   <config evaluator="string-compare" condition="WebFramework">
            <!-- Allow extension modules with <auto-deploy> set to true to be automatically deployed -->

This sets the configuration so that modules are manually deployed unless they request to be automatically deployed.

A Share Extension module can configure itself to deploy automatically by using the following configuration:


This would be located in the module's configuration, for example:

			<id>New Content Module</id>
						<sub-component id="New_Content" index="25">