Ruby/Usage: Difference between revisions
< Ruby
(→Usage) |
(→Usage) |
||
Line 5: | Line 5: | ||
# use ruby for development only purposes on your local machine; | # use ruby for development only purposes on your local machine; | ||
Usage system ruby for production | Usage system ruby for any other cases along with the specific production case is UNSUPPORTED. | ||
Out ruby use '''rvm''' for build process. So to install an additional ruby gems or side modules, you have to add a user into ''rvm'' group: | Out ruby use '''rvm''' for build process. So to install an additional ruby gems or side modules, you have to add a user into ''rvm'' group: |
Revision as of 18:07, 12 December 2023
Usage
You have to use system ruby generally for several purposes, so you have to:
- use application, which strictly requires ruby, like: foreman, gem-alexandria-book-collection-manager;
- use ruby for development only purposes on your local machine;
Usage system ruby for any other cases along with the specific production case is UNSUPPORTED.
Out ruby use rvm for build process. So to install an additional ruby gems or side modules, you have to add a user into rvm group:
# usermod [USER] -aG rvm
or
$ sudo bash -c "usermod \$SUDO_USER -aG rvm"
And then relogin as the user. From time of relogin, additional gems will be installed for the user in the default $GEM_HOME folder /var/cache/ruby/gemie.