Getting edge rails working on bluehost

Ive done the following, which has worked in the past when using gem

  1. alter database.yml to reflect database settings
    adapter: mysql
    database: xxx
    username: xxx
    password: xxx
    host: localhost

  2. change the ruby link in the first line of dispatch.cgi and
    dispatch.fcgi to reflect the server location:
    from #!c:\ruby\bin
    to #!/usr/bin/ruby

I test it and it fails. My gem rails app works fine with these changes.
gem rails app setup based on the bluehost tutorial:

I was under the impression that rails looks in vendor/rails first then
looks to the system gem install.

I checked out the dispatch.cgi file for relevant settings and found the
following. It appears to be pointing to the environment file for finding
the rails root ?

Im out of my depth here and would appreciate some direction with this


require File.dirname(FILE) + “/…/config/environment” unless

If you’re using RubyGems and mod_ruby, this require should be changed

to an absolute path one, like:

“/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher” –

otherwise performance is severely impaired
require “dispatcher”

ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if } if defined?(Apache::RubyRun)


require File.join(File.dirname(FILE), ‘boot’)

man this is frustrating, i cant find any information. It looks like it
should just work with vendor/rails by default…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs