Deployment Configuration Settings

Top  Previous  Next

Deployment dialog is used for managing the deployment configurations of a project. Use "Project | Deployment" menu to access this dialog.

 

deployment_configuration

It is possible to deploy the same project in different ways by assigning different values to the build parameters.

Web Application

Application Name and the Sub-Application

Bakın Uygulama Adı ve Alt Uygulamalar.

Service Extension

There are two predefined service extensions for MoreMotion AF requests that are "doms" and "doms.jsp". The both of these extensions are predefined in the web application configuration (web.xml) file.

If you will deploy the application on a application server totally controlled by you, then the extension "doms" is recommended.

But if you are supposed to deploy your application on an application server hired from an ISP (Internet Service Provider), it possible that introducing the  "doms" extension may not be always a simple process. For such cases the extension "doms.jsp" can be preferred since it requires no additional settings in the environment of the ISP.

Generate

This parameter is used to selectively build the page variants in a project. The options are:

Generate all pages

All the pages and all the page variants existing in a project will be generated.  

Generate master only

Only master pages in a project will be generated. If page variants existing in the project they will be ignored.

Generate "xx" pages only

"xx" stands here for a specific page variant. For example if there are German variants of the master pages existing in a project and Generate "de" pages only is selected then only German variants will be generated.

Assume that your master pages are in English and you have German variants of them in your project. If you want to host the both languages of the pages on the same web server then you can simply select the option Generate all pages.

If you want to host them on different web servers then you can create two deployment configurations and in one configuration you can select Generate masters only and in the other Generate "de" pages only.

See Page Variants.

Build directory

The name of build directory. If you leave this field blank then the default is
{User Documents}\.MMAS.Build.Vx\{ProjectName}_{ProjectID}.

 

Test Server

JDK Home

The root directory of the Java 2 SDK that is used to test the applications built by the Application Studio. If no value is given then jre1.6.0_17 that exists under the {INSTALL_DIR} is used.

Max. Heap Size

The value to be used with the Java -Xmx startup parameter to define the maximum heap size that can be used by the Java.

Enable Java Debugging

If this checkbox is checked then the following startup parameters used when starting the java.
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=%vof(debug-port),suspend=n

 
Tomcat Home

The root directory of the Apache Tomcat servlet container that is used to test the applications built by the Application Studio. If no value is given then apache-tomcat-6.0.18 that exists under the {INSTALL_DIR} is used.

Port Class

The projects that use the same JDK Home, Tomcat Home and the Library Path are deployed to the same Tomcat during test. If, for any reason, you want to start another Tomcat listening on another port give a value to this field.

 

Build Parameters

The parameters defined here can be queried both by the compile-time functions during compiling of the pages and by the XSL pages in the run time.

Assume that a build parameter "BuildFor" is defined in this dialog. During the compilation of any page in a project, variable s:BuildFor will be accessible to the compile time functions. Please see Conditional Build for more information.

The build parameters defined here are also recorded in file "{WEB_APPLICATION_ROOT}\WEB-INF\MM-INF\sysinfo.xml" by the Application Studio to forward them to the MoreMotion AF.make them accessible to XSL functions of dynamic pages during the run-time.

The parameters in this file can be accessed by the @sysparam() MScript function or by the SystemConfig.getParameter() API method of  MoreMotion AF.

 

Encrypted Parameters

If you want to create an encrypted parameter, for instance a database password, check "Encrypted parameter" checkbox. This way you ensure that the value of the parameter is kept and stored encrypted until it is transferred to MoreMotion AF. MoreMotion AF will decrypt the value of the parameter when loading the "sysinfo.xml" file.