Welcome Guest | Login

Deployed app but just get a list of files

Hi,

I've deployed my app following the tutorial, just a basic FCGI rails app, but when I go to sneak preview all I get is a list of all my files

Any idea what this could be?

2008-06-06 03:09 AM

That issue occurred because your sym-link for public_html was wrong..I have fixed it now. You should symlink to the 'public' directory of the rails app.

But I am getting a "application failed" error now. On running the dispatch.fcgi file manually. I found the following errors..
=
./../config/../config/routes.rb:35: undefined method `connect' for nil:NilClass (NoMethodError)
=
Can you check the routes.rb file and ensure correct settings in that file.

2008-06-06 03:38 AM

Regards,
Rahul
I've already altered it (routes.rb) and found I also had index.html in public which I have deleted.

Now getting an internal server error 500 so over to you!!!

(I know abit about hosting as I support large corporates but they use IIS)

2008-06-06 03:47 AM

Please check the production logs. There is a mysql issue indicated in these logs..The mysql user, database, password details that you have mentioned in the database.yml seems to be mismatching.

Please try recreating the mysql user (with the same password) and try connecting the same again to the mysql database again.

2008-06-06 04:37 AM

Regards,
Rahul
Thanks, now working for the most part.

I think the tutorial needs updating as it was simply that the MySQL user created needing priveledges adding to it for the database.

This isn't mentioned in the tutorial.

JonnyT

2008-06-06 05:00 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.