My host upgraded Rails to 2.1.1 recently, which deprecated my Rails site done with 1.2.5.
My site died at a crucial time and I managed to get the local debug version running again on my machine, thanks to some changes in environment.rb and boot.rb, as well as changing some deprecated stuff that had been removed in 2.1.
I've uploaded the new files but am still crashing. My site is at
www.chillisoft.co.za. I tried uploading a sitedown.html to help customers, but that won't show either.
At least in the short-term I need to do two things. Redirect these errors to
www.chillisoft.co.za/sitedown.html and/or display errors so I can see what is causing the continued crashing. Do I need to restart the webserver and how do I do this? I'm a little new at this stuff.
My .htaccess file is as follows:
------------------------
# 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]
RewriteCond %{REQUEST_URI} ^/blog.*
RewriteRule .* - [L]
RewriteCond %{REQUEST_URI} ^/habanero/forum.*
RewriteRule .* - [L]
RewriteCond %{REQUEST_URI} ^/habanero/wiki.*
RewriteRule .* - [L]
RewriteCond %{REQUEST_URI} ^/support/mantis.*
RewriteRule .* - [L]
RewriteCond %{REQUEST_URI} ^/(stats|failed_auth\.html
).*$ [NC]
RewriteRule .* - [L]
RewriteCond %{REQUEST_URI} ^/sitedown.html
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 r$
#
# Example:
# ErrorDocument 500 /500.html
# ErrorDocument 500 "<h2>Application error</h2>Rails application failed to
start properly"
# ErrorDocument 500 sitedown.html