PDA

View Full Version : 500 application errors - ruby on rails



mgolds02
12-05-2008, 01:25 PM
Hey everyone,

I'm at my last straw.. Ive been trying to get ruby on rails to work with capistrano and no luck yet. I've followed tutorials here about capistrano as well as how to set permissions, change to fcgi etc.. nothing works and hostmonster support is no help either!

When i create a test app via 'rails test' it works fine and im brought to the index.html. My problem is that I dont use an index.html page (i used a standard layout in 'application/app/vies/layouts' and when i remove the index public folder everything goes to hell and i get 500 errors. I'm using the .htaccess file from this post in my public folder:

http://helpdesk.hostmonster.com/kb/index.php?x=&mod_id=2&id=391

Is there ANYTHING i can do to get this fixed? i'm open to any solution. I've been trying to fix this for weeks now.

if I cant get this to work i might just switch hosts.

jpg0002
12-07-2008, 10:25 PM
Hello mgolds02,
I also use a standard layout like you, but I didn't delete my public_html directory. I just redirect /public_html/index.html to the root page of my application. My index.html looks like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Liberty Performing Arts Accounts</title>
<meta http-equiv="REFRESH" content="0;url=http://acct.libertyperformingarts.net/admin/login"></HEAD>
<BODY>
Redirecting to Liberty Performing Arts Accounts Tracking page.
<br />
If you are not redirected in 15 seconds, click <a href="http://acct.libertyperformingarts.net/admin/login">here</a>
</BODY>
</HTML>

I also used the same .htaccess file. I placed mine in the root directory of my application, though. There is also a different one in public_html, but my apps don't use that one, AFAICT.

Hope this helps you! BTW, I don't have mine working in production mode yet; it was fine in dev mode, but when I switched, something broke. If you know anything about that, I would appreciate a hint!

Good luck!
John

mgolds02
12-10-2008, 03:15 PM
Hello mgolds02,
I also use a standard layout like you, but I didn't delete my public_html directory. I just redirect /public_html/index.html to the root page of my application. My index.html looks like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Liberty Performing Arts Accounts</title>
<meta http-equiv="REFRESH" content="0;url=http://acct.libertyperformingarts.net/admin/login"></HEAD>
<BODY>
Redirecting to Liberty Performing Arts Accounts Tracking page.
<br />
If you are not redirected in 15 seconds, click <a href="http://acct.libertyperformingarts.net/admin/login">here</a>
</BODY>
</HTML>

I also used the same .htaccess file. I placed mine in the root directory of my application, though. There is also a different one in public_html, but my apps don't use that one, AFAICT.

Hope this helps you! BTW, I don't have mine working in production mode yet; it was fine in dev mode, but when I switched, something broke. If you know anything about that, I would appreciate a hint!

Good luck!
John


nope didnt work. im about fed up. looks like hostmonster is going to lose a loyal customer due to their unwillingness to help ror customers.