![]() |
my rails runner
I want share with you my modified RailsRunner it works only with rack rails 2.3 i had separate RailsRunner for older version to if somone want i can post it too
There is a few modifications: 1. Process name changed now we see what is process name it looks like: 91436 ?? S 3:33.42 ruby: RAILS: fdb.pl (production) (ruby) 91437 ?? S 3:53.94 ruby: RAILS: fdb.pl (production) (ruby) 91438 ?? S 3:29.63 ruby: RAILS: fdb.pl (production) (ruby) 91439 ?? S 3:49.33 ruby: RAILS: fdb.pl (production) (ruby) you must set APP_NAME varible in litespeed env or it will use directory where you app is placed. 2. second change is FIX problem with ENV varible after call server = Rack::Handler::LSWS ENV varible disaperd i rewrite it again. Code:
#!/opt/ruby/bin/ruby hope that we be usefull for somone :) |
incorporate the "process name change" feature into our official Rails Runner code.
|
After trouble shooting an issue with radiantCMS, I come up a new RailsRunner to address following issues:
1. Failed to detect Rails version when application bundled with Rails like radiantCMS. use Rails::VERSION::STRING to get rails_ver now 2. Add our own rack handler into RailsRunner, so, no need to patch Rack anymore. The new RailsRunners.rb is Code:
#!/usr/bin/ruby |
I think there is 1 litle problem with RailsRunner:
Code:
require 'active_support' it will load newest version of this libs even application runing older rails (if there is 2 rails version installed in system exemple: 2.3.5 and 2.3.4) |
So, you think it is safe to remove those. it was in the original RailsRunner.
|
Quote:
|
| All times are GMT -7. The time now is 11:20 PM. |