Advertisement

10.08.2008 at 01:05AM PDT, ID: 23796460
[x]
Attachment Details

Rails site down - deprecated with 2.1.1 upgrade

[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.6
Tags:

Ruby on Rails, http://www.chillisoft.co.za

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
Answered By: wesgarrison
Expert Since: 12/03/2002
Accepted Solutions: 134
Computer Expertise: Advanced
wesgarrison has been an Expert for 6 years1 month, during which he has posted 466 comments and answered 134 questions. wesgarrison is just one of 98 experts in the Ruby Scripting Language Zone. 1 expert collaborated on this answer, which was graded an "A" by the asker.
 
 
20081119-EE-VQP-47 / EE_QW_2_20070628