Douglas Jarquin

Beast on Media Temple

2007 October 17th
Comments

What follows is a tentative guide to installing Beast, a forum application written in Ruby on Rails, on Media Temple Grid-Service.

First things first

Enable Rails container

  1. Log in to your (mt) account center and select your primary domain.
  2. Click into the “(gs) GridContainers” section.
  3. Click the “manage” link for the Rails GridContainer.
  4. Click “Enable Container”.

Note: You will need about 35 MB of ram for Beast.

Create database

  1. Click into the “Manage Databases” section.
  2. Click the “Add A Database” tab.
  3. Give your database a name and select a database type.
  4. Click “Next”

Setup email

You must have a beast@domain.com user setup for sending activation emails.

Setting up Ruby on Rails

ssh serveradmin%domain.com@domain.com **OS X Terminal
serveradmin@domain.com **Windows
mtr generate_config **serveradmin@domain.com and password
mtr setup_rubygemssource ~/.bash_profile
gem install rails -y
gem install mysql --source=http://gems.mediatemple.net
gem install postgres --source=http://gems.mediatemple.net
gem install daemons gem_plugin -y
gem install mongrel --source=http://gems.mediatemple.net

Installing the Beast

cd $HOME/../../containers
mkdir rails && cd rails
svn co -r 2873 http://svn.techno-weenie.net/projects/beast/trunk beast
cd beast
gem install RedCloth
gem install ruby-openid
cp config/database.example.yml config/database.yml

Note: Instead of installing beast from the stable 1.0 branch we checkout revision 2873 from the trunk. This way we can update to stable versions of the trunk without having to worry about merging branches. Stable 1.0 is actually revision 2907, but I have not been able to install it successfully.

Edit database.yml

  production:
  adapter: mysql
  database: db#####_beast_production
  username: db#####
  password: xxxxxxx
  host: internal-db.s#####.gridserver.com

Edit environment.rb

Add your email settings to the end of the ‘beast/config/environment.rb’ file.

# email settings
ActionMailer::Base.smtp_settings = {
  :address => "mail.domain.com",
  :port => 25,
  :domain => "domain.com",
  :authentication => :login,
  :user_name => "beast@domain.com",
  :password => "xxxxxxx"
}

Initialize Beast

rake db:schema:load RAILS_ENV=production
mtr add beast $PWD domain.com
mtr start beast
mtr generate_htaccess beast
mtr create_link beast domain.com

References

You can now see a working example by visiting http://yourdomain.com.

Filed under Tutorials



(required)



(required) (Won't be displayed)


Your Comment:

Photostream
Foot ModelingHappy TimesOfficial Baby PictureEthan's First Yawn