Dreamhost deployment question - can't get it to work

0 views
Skip to first unread message

Fen Lowe

unread,
Nov 13, 2007, 6:22:07 PM11/13/07
to rubyonrails...@googlegroups.com
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
--
Posted via http://www.ruby-forum.com/.

Jun-Dai Bates-Kobashigawa

unread,
Nov 14, 2007, 2:06:19 PM11/14/07
to rubyonrails...@googlegroups.com
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

Spencer Turner

unread,
Nov 21, 2007, 4:10:06 PM11/21/07
to rubyonrails...@googlegroups.com
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

cuong...@gmail.com

unread,
Nov 22, 2007, 10:06:59 AM11/22/07
to Deploying Rails

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 Lowe <ruby-forum-incom...@andreas-s.net>
wrote:
Reply all
Reply to author
Forward
0 new messages