-
Install the correct version of Ruby, preferably using a Ruby version manager like RVM or rbenv.
rvm install $(cat .ruby-version)
or
rbenv install $(cat .ruby-version)
-
Install additional dependencies.
sudo apt-get install mysql-server libmysqlclient-dev
-
Run
script/bootstrap
. If you are prompted for a database password: kill the script with C-c, updateconfig/database.yml
with your database credentials and try again.
-
Start SOLR
bundle exec sunspot:solr:start
-
Set up a tunnel for LDAP
ssh -L 9999:ldap.kth.se:389 KTHID@my.nada.kth.se
-
Start the Rails server
bundle exec rails server
replacing KTHID with your KTH username, like koronen
.
Insert your ugid into config/local.yml in order to get the controller specs to work properly (otherwise the test code can't log in).
To generate coverage data, set the environment variable COVERAGE
before
running the test.
COVERAGE=1 bundle exec rake