Skip to content
watson edited this page Oct 8, 2010 · 3 revisions

The code is designed to be installed as a gem and can therefore not be run directly from the source code without first setting up the right environment. But when developing you run on edge and you want to run the code in the current directory - not first install it as a gem.

To run the gooddata executable from the command line, go to the root of the repository and type the following:

RUBYOPT=rubygems ruby -Ilib bin/gooddata

The above command does three things:

  • It instructs Ruby to automatically load the rubygems gem using the RUBYOPT environment variable (this makes it possible to load other gems)

  • It instructs Ruby to append the lib folder to your ruby load path (this ensures that it’s possible to require local source files)

  • Finally it runs the gooddata executable inside the bin directory

Note: You might want to uninstall any instances of the gooddata gem from your environment before running directly off the source-code to avoid load-order mixups.

Clone this wiki locally