1. install Rubygems on your Dreamhost account so it is not dependent on Dreamhost gems because they can change and if that happens your App is broken. This way you have your own independent gems.
2. Install Merb gems to your Dreamhost account
3. In Dreamhost Controller Panel set check the checkbox for enabling mod_rails on the domain you will using Merb
4. Create a Rackup file (config.ru) in your inside your app directory
This is what my config.ru file looks like:
Change
#USERNAME with your actual account name:
ENV['RUBYLIB'] = "/home/#USERNAME/local/lib/ruby/site_ruby/1.8"
ENV['GEM_PATH'] = "/home/#USERNAME/local/lib/ruby/gems/1.8"
require 'rubygems'
require 'merb-core'
Merb::Config.setup(:merb_root => ".",
:environment => ENV['RACK_ENV'])
Merb.environment = Merb::Config[:environment]
Merb.root = Merb::Config[:merb_root]
Merb::BootLoader.run
run Merb::Rack::Application.new
5. That is it..
6. Restarting your App is very simple. Just ssh to your app and in the tmp directory create a restart.txt file
(touch tmp/restart.txt)
and your app will restart.