O'Reilly logo

Isomorphic Go by Kamesh Balasubramanian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up the application root environment variable

The IGWEB demo relies on an application root environment variable, $IGWEB_APP_ROOT, being defined. This environment variable is used by the web application to declare where it resides. By doing so, the web application can determine where other resources, such as static assets (images, css, and javascript), are present.

You should set up the $IGWEB_APP_ROOT environment variable by adding the following entry in your bash profile:

export IGWEB_APP_ROOT=${GOPATH}/src/github.com/EngineerKamesh/igb/igweb

To verify that the $IGWEB_APP_ROOT environment variable exists in the environment, you can use the echo command:

$ echo $IGWEB_APP_ROOT/Users/kamesh/go/src/github.com/EngineerKamesh/igb/igweb ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required