The recommended way to install Ruby is with RVM:
Please refer to rvm.io/ for more Information. Follow this guide to install rvm: rvm.io/rvm/install/
Dont forget to install the requirements for running rvm ruby. You can get a list of the ubuntu-packets needed with
rvm requirements
After installing RVM you are able to install ruby with the following command:
rvm install ruby-1.9.3
It’s recommended to use this version of ruby as default one:
rvm ruby-1.9.3 --default
sudo apt-get install mysql-client libmysqlclient-dev
git clone git@github.com:locommun/locommun.git
gem install bundler
bundle install
rake db:create rake db:migrate
rails s
Visit 0.0.0.0:3000¶ ↑
Everytime you want to pull new code do:
git pull origin master
bundle install
rake db:migrate
Travis Status: <img src=“https://travis-ci.org/locommun/locommun.png?branch=master” alt=“Build Status” />
Update your gems with bundler first (if you did the steps above it should be ok)
rake db:test:prepare
rspec
Now you should see the test log. The Code coverage can be found at coverage/index.html
Sometimes you have to migrate your test db (db:test:prepare just sometimes ommits that)
RAILS_ENV=test rake db:migrate