Welcome Guest | Login

problem with app newbie

I am trying to deploy the Solunas 2 booking app (www.solunas.org) on my hostingrails account.

I am totally new to Ruby on Rails and although I seem to have followed the beginners tutorial to the letter, (including NOT uploading the whole of the public folder), I am getting an error when I run the script. It doesn't even look like Ruby is being fired up, all I get is the contents of my dispatch.fcgi file printed out in plain text into the browser window. Can you help? My temporary site is www.423nerj.luther.hostingrails.com

Kind Regards,

Nick.

2007-01-11 04:46 AM

Hey (see below)

2007-01-11 04:47 AM

sorry mate, I clicked enter before I'd actually typed any content into the message! I've corrected it now so its a real post lol

2007-01-11 04:51 AM

having just looked at the error again, is this because the shebang line is still commented out in my dispatch.fcgi file?

2007-01-11 04:52 AM

No - you're getting this error because you forgot to comment out the AddHandler fastcgi line your .htaccess :)  - let me know if that helps.

2007-01-11 04:55 AM

Nope I checked that. Here is the contents of my public/.htaccess file:

# General Apache options
# AddHandler fastcgi-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI

# If you don't want Rails to look in certain directories,
# use the following rewrite rules so that Apache won't rewrite certain requests
#
# Example:
#   RewriteCond %{REQUEST_URI} ^/notrails.*
#   RewriteRule .* - [L]

# Redirect all requests not available on the filesystem to Rails
# By default the cgi dispatcher is used which is very slow
#
# For better performance replace the dispatcher with the fastcgi one
#
# Example:
#   RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
RewriteEngine On

# If your Rails application is accessed via an Alias directive,
# then you MUST also set the RewriteBase in this htaccess file.
#
# Example:
#   Alias /myrailsapp /path/to/myrailsapp/public
#   RewriteBase /myrailsapp

RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]

# In case Rails experiences terminal errors
# Instead of displaying this message you can supply a file here which will be rendered instead
#
# Example:
#   ErrorDocument 500 /500.html

ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly"



Any ideas why it doesn't work? Thanks for your help.

2007-01-11 05:06 AM

Should I have an .htaccess file anywhere else in addition to the public directory?

2007-01-11 05:07 AM


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