Dreamhost deployment question - can't get it to work

Hi all,

I ran the depot application based on the book “Agile web development
with Rails” on my local machine and it works great.

Now I follow “http://wiki.dreamhost.com/Ruby_on_Rails” to setup on
dreamhost, I have depot and mydomain.com at the same level.

After everything is done, when I type “http://mydomain.com” I hit this

"Not Found

The requested URL / was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use
an ErrorDocument to handle the request."

Do I missing anything here?

Thanks for your help

It sounds like DH is having trouble finding something to run. Did you
configure the domain to point to public/ inside of wherever you’ve put
the application, e.g., /home/yourusername/mydomain.com/public? And of
course “FastCGI” needs to be enabled on the domain.



Just a couple more problems that might trip you up.

You have to set the environment variable to Production, othewise FCGI

Make sure when migrating any databases you specify RAILSENV=production ,
you’ll be migrating to development by default.

Oh, and make sure you have stuff CHMODed correctly, or it won’t work.

(Jun-Dai sounds like he/she has it nailed with the site root issue, but
these are extra gotchas)

Hope some of these help.

There are few things you can do to trouble shoot the problems:

  • Go inside public and run dispatch.fcgi from commmand line.
  • Run ./script/server -e production to see if there’s any errors

On Nov 13, 6:22 pm, Fen L. [email protected]