Ruby/Usage: Difference between revisions

From ALT Linux Wiki
(Created page with "== Usage == You have to use system ruby generally for several purposes, so you have to: # use application, which strictly requires ruby, like: [https://packages.altlinux.org/ru/sisyphus/srpms/foreman/specfiles foreman], [https://packages.altlinux.org/ru/sisyphus/srpms/gem-alexandria-book-collection-manager/specfiles gem-alexandria-book-collection-manager]; # use ruby for development only purposes on your local machine; Usage system ruby for production cases is UNSUPPOR...")
(No difference)

Revision as of 15:04, 12 December 2023

Usage

You have to use system ruby generally for several purposes, so you have to:

  1. use application, which strictly requires ruby, like: foreman, gem-alexandria-book-collection-manager;
  2. use ruby for development only purposes on your local machine;

Usage system ruby for production cases 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.