Friday, July 5, 2013

[Rails] Re: How can I determine which server is used



On Friday, July 5, 2013 5:48:00 AM UTC+1, Norm wrote:
Rails 2.3.15
The system may be run using mongrel or apache/passenger.  Some functions are not supported in mongrel 1.1.5 but work in apache/passenger therefore I want to know what server is being used so I can alter behavior as needed.

How can I determine in a controller which server is serving the system?


Pretty crude but you could check defined?(PhusionPassenger)

Fred
 
Thanks
Norm

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c941a365-9f77-4c7e-95d8-7607c07ae362%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate