(→Install Ruby) |
|||
| Line 7: | Line 7: | ||
Packaged version of Ruby tends to be pretty old and won't probably won't work very well. Thus this guide uses [http://rvm.beginrescueend.com/ Ruby Version Manager (rvm)]. | Packaged version of Ruby tends to be pretty old and won't probably won't work very well. Thus this guide uses [http://rvm.beginrescueend.com/ Ruby Version Manager (rvm)]. | ||
| - | # Install dependencies:<br /><tt>$ sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev</tt> | + | # Install dependencies:<br /><tt>$ sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev</tt> # NOTE: dependency to Qt missing. Not sure which is needed. At least libqt4-dev does the trick. |
# Install rvm: <tt>$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)</tt> # NOTE: if network proxy blocks cloning via git proxy, try download the script and change git to http | # Install rvm: <tt>$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)</tt> # NOTE: if network proxy blocks cloning via git proxy, try download the script and change git to http | ||
# Follow the instructions printed once installation is ready | # Follow the instructions printed once installation is ready | ||
Contents |
QA Reports is a Ruby on Rails application so you need to install a bunch of stuff to get it up and running. This documentation is based on Ubuntu 10.10
Packaged version of Ruby tends to be pretty old and won't probably won't work very well. Thus this guide uses Ruby Version Manager (rvm).
This is an optional step in case you want to use MySQL instead of SQLite.
Create MySQL user and two databases, one for development and the other for executing the tests
Configure QA Reports to use MySQL databases by editing config/database.yml as shown below
development: adapter: mysql2 encoding: utf8 reconnect: false database: qa_reports_development pool: 5 username: qa_reports password: <password_of_your_choosing> socket: /var/run/mysqld/mysqld.sock test: adapter: mysql2 encoding: utf8 reconnect: false database: qa_reports_test pool: 5 username: qa_reports password: <password_of_your_choosing> socket: /var/run/mysqld/mysqld.sock
Run the migrations, tests and restart the server