Build a GWA application.
It is assumed you have a directory with your Genero program files. For more information on
creating the program directory, go to Create a program directory.
Steps to build the GWA application
-
Execute the gwabuildtool command and related build options
to create the GWA application.
If required, specify other options, such as the location of the GBC directory with the
--gbc
option if the default GBC is not to be used. For more information, go to
Specify the GBC.
gwabuildtool --program-dir /usr/myprogramdir
The
--program-dir option is mandatory; it must be set to the path of your program directory.
A directory called gwa_dist
with all the necessary files is created in your
current path.
-
Launch your application for testing purpose directly to your browser, using the gwasrv server.
Execute these commands to run the GWA application:
cd gwa_dist
gwasrv index.html
The default browser opens with an address like
http://localhost:9101/d/r/gwa_dist/index.html
and serves the application now
running in the browser.
Once you have built the app, you can package the gwa_dist
using fglgar
gwa
, deploy it on the GAS, and/or upload it to a web server.