web/README.rdoc
author Jan Vrany <jan.vrany@fit.cvut.cz>
Fri, 28 Feb 2014 17:12:59 +0000
changeset 202 3687b284aba0
parent 197 3ebfe9f36c3f
child 293 4bc85b25b6c2
permissions -rw-r--r--
Added run.sh for easy-running of St/X benchmark suite

== README

# Getting Started

## Installing Ruby

Usually ruby installed with operating system is quite old (and slow), so we
will install newer version. The process is not trivial so we will use
existing tools - ruby-install (will checkout and compile ruby for us) and
chruby (will allow us to switch between different versions of ruby).

  wget -O ruby-install-0.4.0.tar.gz https://github.com/postmodern/ruby-install/archive/v0.4.0.tar.gz
  tar -xzvf ruby-install-0.4.0.tar.gz
  cd ruby-install-0.4.0/
  sudo make install

  wget -O chruby-0.3.8.tar.gz https://github.com/postmodern/chruby/archive/v0.3.8.tar.gz
  tar -xzvf chruby-0.3.8.tar.gz
  cd chruby-0.3.8/
  sudo make install

  echo "source /usr/local/share/chruby/chruby.sh" >> ~/.bashrc
  echo "source /usr/local/share/chruby/auto.sh" >> ~/.bashrc

  ruby-install ruby 2.1.1

## Installing Rails (and other gems)

Go to the root of calipel rails app (on my machine: /home/m/Projects/other/jv-calipel/web) and execute

  gem install bundler
  bundle install

## Preparing Databases

In the web app root execute

  rake db:create:all
  rake db:migrate
  RAILS_ENV=test rake db:migrate

## Starting Local Rails Server

In the web app root execute

  rails server