fenlowe
November 14, 2007, 12:22am
1
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
error
"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
-Fen
fenlowe
November 14, 2007, 8:07pm
2
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.
Jun-Dai
fenlowe
November 21, 2007, 10:10pm
3
Hi,
Just a couple more problems that might trip you up.
You have to set the environment variable to Production, othewise FCGI
won’t
work.
Make sure when migrating any databases you specify RAILSENV=production ,
or
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.
Spencer
fenlowe
November 22, 2007, 4:07pm
4
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]