(Difference between revisions)
|
|
| Line 36: |
Line 36: |
| | ## Failed, but after rerun worked | | ## Failed, but after rerun worked |
| | # Start the server: <tt>$ rails server</tt> | | # Start the server: <tt>$ rails server</tt> |
| - | ## And see it fail due to problems with <tt>RubyGem rack</tt>
| |
Revision as of 07:24, 4 January 2011
Introduction
QA Reports is a Ruby on Rails application so you need to install a bunch of stuff to get it up and running. This draft documentation is based on experiences in installation on Ubuntu 10.10
Installing Ruby
Most likely you won't succeed with the packaged version of Ruby. Thus this guide uses Ruby Version Manager (rvm).
- Install dependencies: $ sudo apt-get install git-core curl
- Install rvm: $ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
- Follow the instructions printed once installation is ready
- Install needed packages - check section "For Ruby (MRI & ree) you should install the following OS dependencies"
- Enable loading of rvm - check section "You must now complete the install by loading RVM in new shells"
- Edit .bashrc as described
- Restart your shell to have rvm enabled
- Install Ruby: $ rvm install 1.8.7
- Set into use: $ rvm use 1.8.7
Set up QA Reports
- Clone qa-reports from git: $ git clone git://gitorious.org/meego-quality-assurance/qa-reports.git
- Install preqrequisites: $ sudo apt-get install libmysqlclient-dev
- Create database config to qa-reports/config/database.yml (example exists by name database.example.yml)
- Check qa-reports/Gemfile
- If there's a line gem 'rack', :git => "git://github.com/rack/rack.git", change it to gem 'rack', '1.2.1'
- Apparently the dependencies are not installed with the git approach which will lead into server starting failure
Follow the instructions then from qa-reports/README.creole:
- $ gem update --system
- Note: if you get an error about zlib, follow these instructions
- $ gem install bundler --no-ri --no-rdoc
- $ bundle install --without staging production
- If you had to edit the Gemfile, you can now change it back the way it was and run the bundle command again to make it use the version in git (if that's needed)
- $ rake db:create
- $ rake db:migrate
- Failed, but after rerun worked
- Start the server: $ rails server