1. the one
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2000
    Rep Power

    Basic but urgent help about configuration

    I'm programming in PERL & PHP, but I have to make urgent changes to web site that appears to be built in ruby on rails and I'm lost as it is my first contact.

    I'm trying to delete section of web site: my-site.com/corporate
    There is no such folder and no html files in root, so I assumed that it's url overwritten in .htaccess, but web site is fully functional even if I delete .htaccess file, it makes no difference.
    AddHandler fastcgi-script .fcgi
    AddHandler cgi-script .cgi
    Options +FollowSymLinks +ExecCGI
    RewriteEngine On
    RewriteRule ^$ index.html [QSA]
    RewriteRule ^([^.]+)$ $1.html [QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
    (ruby comments are left out)

    I have also found above public root folder
    config/routes.rb file with paths/URLs obvious used by web site, like:
    map.connect '/corporate', :controller => 'corporate', :action =>'corporate'
    and deleted that lines I don't want, but it also has no effect...
    How do I make changes to website, is there any server cache that I can delete and how or do I need to restart server (I would have to request hoster to do it)?
    I have attempted to delete browser history, so it's not a problem.
    Last edited by Pepe'; March 1st, 2010 at 07:09 PM.
    If I'm posting problem here, it means that I have not been sleeping for at least 20 hours
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Woodland Hills, Los Angeles County, California, USA
    Rep Power
    You're correct in deleting the entry in routes.rb, but you still need to restart the rails webserver. In production environments, this might be something called 'mongrel' (at least, that's what I used when I did ruby work). You just need to restart that daemon to pick up the changes to routes.rb.

    Note that just restarting apache (or lighttpd or whatever) will not have an effect, since apache is just being used as a proxy to mongrel. You need to restart mongrel to see the changes.
    Last edited by Scorpions4ever; March 3rd, 2010 at 10:06 AM.
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo

IMN logo majestic logo threadwatch logo seochat tools logo