RUBY_VERSION
indicates the version of the Ruby interpreter. There is also RUBY_PATCHLEVEL
if you need more information.
Finding PassengerRuby from the Application
-
19-06-2023 - |
Question
I am using rvm - passenger - apache combination. For different apps i have the PassengerRuby
specified in the host file.
Like this:
App1.conf
PassengerRuby /usr/local/rvm/gems/ruby-1.9.3-p545/wrappers/ruby
App2.conf
PassengerRuby /usr/local/rvm/gems/ruby-2.1.1/wrappers/ruby
I want to find from the application with which Ruby it's Running. So that i can display to the user.
How can i do that from the application itself?
La solution
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow