I have a few questions and I am having a very hard time finding concrete answers to them.
The first and I think shortest one, is when I have passenger enabled, which dispatcher is being called? the Dreamhost wiki says to make sure my shebang is set correctly in ‘dispatch.fcgi’ but other places say dispatch.rb. I’m confused about the nomenclature here as well because my domain has fastcgi off (just passenger checked) so how does that correlate to the ‘.fcgi’? I just edited the shebang in all 3 dispatchers for the sake of it, but if I’d love to know which one specifically get used for the sake of that whole G.I.Joe thing.
Now on to my ‘problem’ (which I’m sure is just my lack of knowing what is going on):
I have passenger enabled on my subdomain and my site directory set up to the appname/public directory. When I go to the subdomain on my site, I see the welcome to rails page. Any action that should invoke rails results in Passenger saying that rails 2.1.0 is not installed.
It is - gem list has passenger 2.1.0 and all dependancies and such all listed and if I run dispatch.rb (or.fcgi or anything) it works. It’s only going through the web that does not work.
packages (readline, ruby enterprise, gem) are installed in .local/bin
gems are installed in .gems (which rails = “home/username/.gems/bin/rails”)
** I also tried adding the usr/lib/ruby/gems/1.8 in to the GEM_PATH to no avail. I was also concerned that if I did this, I would just be using rails 2.0.2 anyway
When I commnet out the version information for rails in my environment.rb file, instead of “2.1.0 not found” I get 2.0.2 failed to start. This leads me to believe that passenger is not looking in the right spot(s) for my gems? In environment.rb I have the ENV[‘GEM_HOME’] set to the same as my .bashrc (except hard pathed /home/username/ not $HOME)
Eek. I don’t know what is wrong. In a fit of confusion I actually installed the passenger 1.0.5 gem and tried to set RailsSpawnServer to the one in my .gems/bin and I’ve also tried setting RailsRuby to the path to my ruby bin. I don’t even know if these work in .htaccess or if they have to be in the .conf file that I don’t have access to as a shared hostee?
Boy am I lost.
edit: Adding the dreamhost gem path to the $GEM_PATH AND commenting the rails version in environment.rb does let rails work and when I output Rails::VERSION::STRING it is 2.1.0 but I suspect that this is merely a constant somewhere because as soon as I take out the coment it says it can’t load 2.1.0 again.