문제

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?

도움이 되었습니까?

해결책

RUBY_VERSION indicates the version of the Ruby interpreter. There is also RUBY_PATCHLEVEL if you need more information.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top