Prior to running the igweb executable, we must set the $IGWEB_APP_ROOT and $IGWEB_MODE environment variables on the production server:
$ export IGWEB_APP_ROOT=/home/igweb/igweb $ export IGWEB_MODE=production
Setting the $IGWEB_APP_ROOT environment variable allows the igweb application to know the designated igweb directory that will contain dependent resources, such as static assets.
Setting the $IGWEB_MODE environment variable to production allows us to run the igweb application in production mode.
You should add entries for these two environment variables in the igweb user's .bashrc configuration file:
export IGWEB_APP_ROOT=/home/igweb/igwebexport IGWEB_MODE=production