(ve):Install Teambox

  • This page was last modified on February 22, 2011, at 08:32.
The (mt) Community Wiki is a collaborative project. Any (mt) Media Temple customer or employee may contribute. Not all articles and/or content have been tested for accuracy by (mt) Media Temple.

For officially moderated and tested articles, be sure to visit our KnowledgeBase.

From (mt) Community Wiki

Contents

Teambox is an innovative team collaboration and task management tool. (ve) is the perfect environment for it.

Prerequisites

You should follow the (ve):Nginx on thin rails article to get Rails and Rubygems set up on your (ve).

You'll also need to have the bundle gem installed

$ gem install bundler -v '~> 0.9.12'

Finally, you'll need the 'git' source management system to get the code.

Unfortunately, CentOS repos don't have git, but the EPEL (Extra Packages for Enterprise Linux) repository does.

Install EPEL with

$ rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpm

With EPEL installed, you can go ahead and install git.

$ yum install git

You'll also need the ImageMagick library

$ yum install ImageMagick

The install won't work unless the SQLite, MySqp and PostgreSQL gems are installed, which requires the development libraries for all three

$ yum install sqlite-devel mysql-devel postgresql-devel

Finally, install some xml libraries

$ yum install libxml2-devel libxslt-devel

Get Teambox

Check out teambox using git

$ git clone git://github.com/micho/teambox.git /teambox

Setup Teambox

Move to the teambox directory

$ cd /teambox

Run bundle to setup teambox

$ bundle install
  • Note: This must be run on Ruby 1.8.7 (at the moment)

Prepare the Database

You'll need to setup the database for Teambox

$ mysql -uroot -p
Enter Password:

> CREATE DATABASE teambox;
Query OK
> GRANT ALL ON teambox.* TO 'teambox'@'localhost' IDENTIFIED BY 'password';
Query OK
> FLUSH PRIVILEGES;
Query OK
> exit

Load Database Schema

Run rake to load the database tables

$ rake db:create db:schema:load RAILS_ENV=production

Edit Teambox Config

Edit the database file to reflect the new database settings

$ nano config/database.yml

Edit the production section

config/database.yml

production:
adapter: mysql
host: localhost
username: teambox
password: password
database: teambox

Edit the teambox.yml config file

$ nano config/teambox.yml

Edit at least these fields

config/teambox.yml

app_domain: your.domain.com

smtp_settings:
:domain:         your.domain.com        # the domain your emails will come from
:address:        mail.google.com  # SMTP server used to send emails
:port:           25
:authentication: :plain
:user_name:      username
:password:       password

# Set to true when using Gmail
:enable_starttls_auto: true
  • Tip: When using zimbra as your mail server, set enable_starttle_auto to true