views:

43

answers:

1

I set up a new RoR project on MAC OS Leopard, created a repository, svn added the whole Rails project, committed, checked out at my site, set up a vhost (see below), and I cannot get to a new controller page I created (/mycontroller/index). I CAN get to the "Welcome Aboard" page. I have another Ruby install (Redmine project management software) running with Apache.

I get this:

Not Found

The requested URL /developer was not found on this server.
Apache/2.2.8 (Ubuntu) mod_fastcgi/2.4.6 PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch mod_scgi/1.12 Server at colorubooks.chadjohnson.ath.cx Port 8080

Here is my vhost setting:

<VirtualHost *:80>
    ServerName mysite.mydomain.ath.cx
    ServerAdmin [email protected]
    DocumentRoot /srv/www/mysite.mydomain.ath.cx/public
    RailsEnv development

    <Directory "/srv/www/mysite.mydomain.ath.cx/public">
        Options Indexes ExecCGI FollowSymLinks -MultiViews
        Order allow,deny
        Allow from all
        AllowOverride all
    </Directory>
</VirtualHost>
+1  A: 

First: In DocumentRoot you missed a /

change:

DocumentRoot /srv/www/mysite.mydomain.ath.cxpublic

to:

DocumentRoot /srv/www/mysite.mydomain.ath.cx/public

then you should be able to see static files in the /public directory (like the welcome aboard page)

Now I have a question for you... I presume that you want to use apache to deploy... Have you already installed and setup passenger (mod_rack) apache module?

Link to easy passenger install guide: http://modrails.com/install.html

enjoy!

makevoid
Whoops...I edited that quickly before boarding a plane, and the slash is in fact there. I'll muck with the other stuff.
Chad Johnson
Okay, installed passenger, and I still get We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly. (500 error). What do I need to do? I get nothing in my /log files.
Chad Johnson
Nevermind, figured out the database.yml file was pointing to an invalid mysql.sock file. Fixed! Thanks!
Chad Johnson