Get the system ready. Make that curl and gpg, as well as a compiler toolchain, are installed.
Set up RVM. To install RVM on your production server, run the scripts below.
Select the Ruby version you wish to use and install it.
Download and install Bundler.
Install Node.js if desired.
Be aware of the differences between sudo and rvmsudo.
Proceed to the next step.
How to Set Up and Manage Your Ruby Installations with RVM:
Installing your operating system requires some preparation.
Using a command prompt.
Confirming the installation's origin.
Installing RVM is the fourth step.
Making use of RVM.
RVM is used to install Ruby.
Using Gems is number seven.
Using a previous version of Ruby.
RVM is a command-line utility for installing, managing, and working with numerous Ruby environments, ranging from interpreters to gem sets.
RVM has a configuration directory in $rvm config path, which is located in /.rvm/config/ for a typical installation as a user to their $HOME directory.
To begin, execute rvm get stable to update your RVM installation. You'll then need to run rvm reload to ensure you're running the latest RVM version (or just open a new terminal). After that, you can run rvm list known ruby versions to get a list of the ruby versions that are accessible to install.