Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
bmoyles
Feb 15, 2002

United Neckbeard Foundation of America
Fun Shoe
You won't find a Quartz-alike until rails runs in a threaded app server. Rails apps are triggered by events like a user hitting a page. There's no constant thread running that can be used to do stuff like run jobs.

Adbot
ADBOT LOVES YOU

bmoyles
Feb 15, 2002

United Neckbeard Foundation of America
Fun Shoe

Xgkkp posted:

This is almost a purely apache question, but can I use mongrel and have it running on, instead of it's own subdomain (someapp.serveraddress), the site being like a subfolder serveraddress/someapp ? All the guides I have found are the former.

absolutely. Are you using mod_proxy to pass traffic back to your mongrels?

Here's a config that works for apache 2.2:
edit: and should work for earlier apache versions
code:
    Alias /railsapp /path/to/rails/app/public
    <Directory /path/to/rails/app/public>
        RewriteEngine On
        RewriteBase /railsapp
        RewriteRule ^$ index.html [QSA]
        RewriteRule ^([^.]+)$ $1.html [QSA]
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^(.*)$ [url]http://127.0.0.1:8000/[/url]$1 [QSA,P]
        ProxyPassReverse [url]http://127.0.0.1:8000[/url]
    </Directory>
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>
Naturally, that last RewriteRule and ProxyPassReverse should be modified to match your mongrel config. That is the setup for a single mongrel. It's a little different if you have multiple mongrels and want to use something like mod_proxy_balancer to load balance.

bmoyles
Feb 15, 2002

United Neckbeard Foundation of America
Fun Shoe
Someone pissed in Zed Shaw's cheerios
http://www.zedshaw.com/rants/rails_is_a_ghetto.html
Fun read :)

bmoyles
Feb 15, 2002

United Neckbeard Foundation of America
Fun Shoe
Pretty interesting stuff here:
http://www.modrails.com/
http://izumi.plan99.net/blog/

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply