GWA environment variables

This section describes environment variables relevant to Genero Web Application (GWA) deployment and configuration.

BROWSER

To specify a different browser to the default one, use the BROWSER environment variable and set it to either chrome, firefox, safari, edge, or none. Setting BROWSER to none does not invoke a particular browser; instead, a message appears on the command line like this:

Copy the following URL into your browser: http://localhost:9101/d/r/index.html

For example, BROWSER=chrome launches Chrome, BROWSER=firefox launches Firefox, BROWSER=safari launches Safari, and BROWSER=edge launches Edge.

GWA_TARGET

The GWA_TARGET environment variable defines the target platform or environment for the GWA app. It is used to specify where and how the GWA app should be launched.

  • GWA_TARGET=simulator: Starts the GWA app in Safari Mobile in an open iOS Simulator (Mac OS only). Prerequisite: Xcode must be installed.
  • GWA_TARGET=emulator: Starts the GWA app in the default browser of an open Android Emulator. Prerequisite: Android SDK must be installed and commands like adb and emulator must be in the path. You can specify the browser using the BROWSER variable (for example, BROWSER=chrome or BROWSER=firefox).
  • GWA_TARGET=android: Starts the GWA app in the default browser of a USB-connected Android device. Prerequisites: Same as emulator, plus the phone must be in developer mode and all interactive USB connection dialogs about allowing debugging must be accepted.