Skip to content

Latest commit

 

History

History
42 lines (24 loc) · 956 Bytes

INSTALL.md

File metadata and controls

42 lines (24 loc) · 956 Bytes

INSTALL

Biogem.info is a middleman generated website. It comes with a number of scripts and rake tasks which generate the information displayed on the site in YAML format (usually to STDOUT).

Installation

You will need libxml support, e.g.

apt-get install libxslt-dev libxml2-dev

Install Ruby with openssl support

rvm pkg install openssl rvm pkg install iconv rvm remove 1.9.2 rvm install 1.9.2 -C --with-openssl-dir=$HOME/.rvm/usr,--with-iconv-dir=$HOME/.rvm/usr

Checkout the source code and run bundler. See also the create_data.sh.

bundle update

To run the cucumber tests

bundle exec cucumber features/

To run a 'quick' test run

bundle exec rake -- --test

which will generate the site with just a few biogems. Next run

bundle exec middleman server

Trouble shooting

If you get an error

./bin/fetch-geminfo.rb:163:in block in <main>': undefined method authors'

run the script with 'bundle exec' prepended.