Deploying with Genero Archive / Quick start: deploying applications |
Follow these steps to quickly archive and deploy applications and services.
The RESOURCES element specifies your public images directory. See Resource deployment overview and The MANIFEST file.
fglgar --gar --resource myAppPublicImages --application myApp.xcf
A Genero archive file (gar) is created in your current directory that has the same name as the directory. For more information about fglgar, see The fglgar command.
fglgar --gar --application myApp.xcf --trigger-component cpn.wa.execution.local --deploy-trigger "fglrun mydeploy.42r" --undeploy-trigger "fglrun myundeploy.42r"
A Genero archive file (gar) is created in your current directory that has the same name as the directory. For more information about fglgar, see The fglgar command.
Once you have created an archive for your application in the steps above, you can now deploy your application locally on your machine to test it by performing the following tasks:
To deploy an archive named myApp_deploy.gar:
fglrun $(FGLDIR)/web_utilities/services/deployment/bin/PublishGar http://localhost:6394 deploy myApp_deploy.gar
fglrun $(FGLDIR)/web_utilities/services/deployment/bin/PublishGar http://localhost:6394 enable myApp_deploy.garThis enables the application by copying its configuration file (e.g. myApp.xcf) to your $(res.appdata.path) directory. It modifies the application's xcf file so that fglrun knows where to look first for the application-specific resources.
Once you have deployed your application on your machine in the steps above, you can now run your application. If the standalone dispatcher is not already started, start it from the command line using httpdispatch: