Installing ChiliProject on Dreamhost

Posted on August 7th, 2011 by hamstar

So I was having some issues installing ChiliProject on Dreamhost. I had never even deployed a rails application before. But I figured out how to do it.

First you might want to create a new user because you want as much memory available as possible for Rails as it is a bit of a memory hog. IIRC, Dreamhost has about 90mb of RAM available per user (well thats whats in the PHP.ini anyway).

Anyway you can check out the commands to run here or see below:

rm ~/.gem*
gem install bundler

PATH=$PATH:/usr/lib/ruby/gems/1.8/bin

cd ~
git clone git://github.com/chiliproject/chiliproject.git
cd chiliproject
git checkout stable

cp * ../example.com/ -R
cd ../example.com

# Make sure database is working

bundle install --without postgres rmagick test
bundle exec rake generate_session_store

RAILS_ENV=production bundle exec rake db:migrate

# No output is no good, check database.yml

RAILS_ENV=production bundle exec rake redmine:load_default_data