When running the GRE daemon on a different machine than the DVM,
and using any output type aside from SVG running against the Genero Desktop Client, you must set up
the environment before you can preview reports.
Note:
During development the GAS standalone dispatcher, httpdispatch, can be used
instead of a Web server. An example using httpdispatch can be found in
Configure for the Web client in the Genero Studio User Guide.
-
Start the Web server service by invoking the command grehttpd, which is
located at $GREDIR/bin/.
The grehttpd command has the following options:
-p port
, where port is the port number.
The default port is 8080.
-q
activates the Web server service in quiet mode.
-d directory
, where directory specifies
the Web root. There may be several. If nothing is specified, then the current working directory
(".") is taken as the Web root.
-license
prints the NanoHTTPD license.
Note:
The Genero Report Engine ships with this minimal Web server. However, any other web server
capable of serving static files can be used.
-
Indicate where the report files are gathered with the option --dir.
-
Set the GREOUTPUTDIR environment variable to the specified Web root directory in the
environment of the GRE daemon (greportwriter -l). The Web root directory contains
report files generated by GRE. If not set, GRE generates the report files in the directory where the
greportwriter
has been started.
The GREOUTPUTDIR environment variable is only relevant in remote distributed mode. Genero Report
Engine (GRE) and FGL are running on separate servers.
If GREOUTPUTDIR is not set while starting the GRE daemon, you must either start
grehttpd in the same directory as the GRE daemon or run
grehttpd by specifying the directory where the GRE daemon has been started.