Environment Variables for Ruby are as below:
Apache:
Variable |
Value Example |
Description |
MY_RUBY_HOME |
/usr/local/rvm/rubies/ruby-2.5.1 |
The path to the directory where the ruby engine is located |
RUBY_VERSION |
2.5.1 |
The version of Ruby engine installed in the container |
GEM_HOME |
/usr/local/rvm/gems/ruby-2.5.1 |
Locations (there may be several) where gems can be found (should include GEM_PATH) |
GEM_PATH |
/usr/local/rvm/gems/ruby-2.5.1 |
Location where gems will be installed (by default) |
IRBRC |
/usr/local/rvm/rubies/ruby-2.5.1/.irbrc |
Path to IRB configuration file |
APACHE_VERSION |
2.4.33 |
The version of Apache used for running the Ruby application |
NGINX:
Variable |
Value Example |
Description |
MY_RUBY_HOME |
/usr/local/rvm/rubies/ruby-2.5.1 |
The path to the directory where the ruby engine is located |
RUBY_VERSION |
2.5.1 |
The version of Ruby engine installed in the container |
GEM_HOME |
/usr/local/rvm/gems/ruby-2.5.1 |
Locations (there may be several) where gems can be found (should include GEM_PATH) |
GEM_PATH |
/usr/local/rvm/gems/ruby-2.5.1 |
Location where gems will be installed (by default) |
IRBRC |
/usr/local/rvm/rubies/ruby-2.5.1/.irbrc |
Path to IRB configuration file |
NGINX_VERSION |
1.14.0 |
The version of NGINX used for running the Ruby application |