# Dreamhost deployment question - can't get it to work

**URL:** <https://www.ruby-forum.com/t/dreamhost-deployment-question-cant-get-it-to-work/120127>\
**Category:** Deployment\
**Created:** [November 14, 2007, 12:22am UTC](https://www.ruby-forum.com/t/dreamhost-deployment-question-cant-get-it-to-work/120127 "2007-11-14T00:22:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fenlowe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/a8b319/32.png) [@fenlowe](https://www.ruby-forum.com/u/fenlowe)\
**Post date:** [November 14, 2007, 12:22am UTC](https://www.ruby-forum.com/t/dreamhost-deployment-question-cant-get-it-to-work/120127/1 "2007-11-14T00:22:07Z")

</div>

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](http://wiki.dreamhost.com/Ruby_on_Rails)” to setup on  
dreamhost, I have depot and [mydomain.com](http://mydomain.com) at the same level.

After everything is done, when I type “[http://mydomain.com](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

---

<div class="post-metadata">

**Author:** ![fenlowe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/a8b319/32.png) [@fenlowe](https://www.ruby-forum.com/u/fenlowe)\
**Post date:** [November 14, 2007, 8:07pm UTC](https://www.ruby-forum.com/t/dreamhost-deployment-question-cant-get-it-to-work/120127/2 "2007-11-14T20:07:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![fenlowe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/a8b319/32.png) [@fenlowe](https://www.ruby-forum.com/u/fenlowe)\
**Post date:** [November 21, 2007, 10:10pm UTC](https://www.ruby-forum.com/t/dreamhost-deployment-question-cant-get-it-to-work/120127/3 "2007-11-21T22:10:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![fenlowe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/a8b319/32.png) [@fenlowe](https://www.ruby-forum.com/u/fenlowe)\
**Post date:** [November 22, 2007, 4:07pm UTC](https://www.ruby-forum.com/t/dreamhost-deployment-question-cant-get-it-to-work/120127/4 "2007-11-22T16:07:32Z")

</div>

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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
