Deploying with Genero Archive / Quick start: deploying applications |
To enable access to your images and Web components add them to one of the default directories.
By default, the GAS looks for images in $FGLASDIR/pic and in the application directory (defined by the PATH element). To quickly enable access to your images, add them to one of these directories.
The default image directory is set by the WEB_APPLICATION_PICTURE_COMPONENT element, see WEB_APPLICATION_PICTURE_COMPONENT.
<WEB_APPLICATION_PICTURE_COMPONENT Id="cpn.gwc.html5.picture"> <PATH Id="Resource" Type="WEBSERVER">$(connector.uri)/fjs</PATH> <PATH Id="Image" Type="APPSERVER" ExtensionFilter="$(res.image.extensions);.less;.svg"> $(res.path.tpl.html5)/img;$(res.path.pic);$(application.path)</PATH> <PATH Id="SetHtml5" Type="APPSERVER" ExtensionFilter="$(res.web.extensions);.less;.svg" DVMFallbackAllowed="FALSE">$(res.path.tpl.html5);$(res.path.tpl.common)</PATH> </WEB_APPLICATION_PICTURE_COMPONENT>
<APPLICATION Parent="defaultgwc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.4js.com/ns/gas/2.50/cfextwa.xsd"> <RESOURCE Id="application.path" Source="INTERNAL">$(res.path.demo.app)/card/src</RESOURCE> <EXECUTION> <PATH>$(res.path.demo.app)/card/src</PATH> <MODULE>card.42r</MODULE> </EXECUTION> <OUTPUT> <MAP Id="DUA_HTML5"> <PICTURE> <PATH Id="Image" Type="APPSERVER"> $(res.path.demo.app)/card/src/photo; $(res.path.pic);$(application.path)</PATH> </PICTURE> </MAP> </OUTPUT> </APPLICATION>