Deploying with Genero Archive / Quick start: deploying applications |
Before deploying applications, it is recommended that you plan how images are going to be used by your applications so as to take advantage of the optimization and caching feature provided by the GAS for Web and GDC applications.
Images (e.g. logos, background images, etc.) that are common to all or several of your Genero Web Client for JavaScript (GWC-JS) applications and that do not change during an application's lifetime, are considered "public".
This means that at runtime images found in subdirectory paths of the $(res.public.resources) and the $(res.appdata.path)/public/deployment directory (see Paths to application resources) will be put in the browser cache where they can be delivered quickly to the front end without having to access an application's configuration file each time.
The application configuration file (xcf) and all the source files contained in the archive (gar) are placed in this directory.
All the image files contained in the archive's resource directory are copied into this directory and the xcf files of the archive will get updated in order to have their public directory resource $(res.public.resources) set to this directory.
│───$(res.appdata.path) │ │───deployment │ │ │───myApp1_dateTimeStamp (deployed application and private images) │ │ │ │───webcomponents (deployed application's Web components) │ │───public │ │ │───common (default PUBLIC_IMAGEPATH directory containing public images) │ │ │ │ │ │───deployment │ │ │ │───myApp1 (public images deployed with application by fglgar)
<ENVIRONMENT_VARIABLE Id="FGLIMAGEPATH">pics$(sep)images$(sep)private/images</ENVIRONMENT_VARIABLE>You can specify a hierarchy of directories, e.g. "private/images", but then only the $(root)/private/images directory will be searched by fglrun for images, not the parent directory. If there are resources in several subdirectories then you have to specify each subdirectory separately (note $(sep) is a built-in path delimiter which can be used for both Windows® and UNIX™ platforms). For more details on FGLIMAGEPATH, see the Genero Business Development Language User Guide.