Skip to content
zzen edited this page Oct 11, 2010 · 3 revisions

Installing required gems

When installing the gooddata gem all gem dependencies are automatically taken care of. When running of the source code, use bundler to make sure that you have the right gems installed.

If you haven’t installed bundler before, just run:

gem install bundler

To make sure all the correct gems are installed, now just type:

bundle install

Btw. Did you know bundler is an awesome way to manage gems? If you are new to bundler, check out gembundler.com

Running code

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 of the source code to avoid load-order mixups.

Clone this wiki locally