Deploying with Genero Archive / Genero Archive procedures |
When you deploy an archive on a Genero Application Server, the applications and services referenced in the archive are placed on the host, yet are not yet available to users.
The archive will be unpacked in the deployment directory. Static resources are zipped for better performance at runtime.
gasadmin will deploy the .gar but the application deployed is named with the .xcf.
To deploy an archive named fuzzy.gar:
gasadmin --deploy-archive fuzzy.gar
httpdispatch -E res.appdata.path=/work/tmp/gas/appdata
gasadmin -E res.appdata.path=/work/tmp/gas/appdata --deploy-archive myapp.gar
By default, the results are output in text format. When the console output uses the form of an XML document, it can be easier to parse by other applications than textual output. To output in XML, specify the --xml-output option:
gasadmin --deploy-archive fuzzy.gar --xml-outputThe exit status is a 0 (zero) in case of success, 1 in case of error.
<DEPLOYMENT success=”TRUE”> <MESSAGE>Genero Archive successfully deployed.</MESSAGE> </DEPLOYMENT>
<DEPLOYMENT success=”FALSE”> <ERROR>Failed to deploy the Genero Archive</ERROR> <ERROR>An archive with the same name is already deployed</ERROR> </DEPLOYMENT>
Command succeeded. Genero archive successfully deployed.
Command failed. ERROR: Failed to deploy the Genero Archive ERROR: An archive with the same name is already deployed.