Verify the ruby version by running the following command: ruby -v To install a specific version of Ruby you can use the command: rvm install The list should look like the following one: # MRI Rubiesġ.8.7 # security released on head To list which Ruby versions are available for installation, run the following command: rvm list known To start using RVM you need to run: source /usr/local/rvm/scripts/rvm The command will automatically install the packages required, and install the latest stable Ruby version. Install the RVM stable version by running the command below: $ curl -sSL | bash -s stable -ruby Then, we need to import the GPG key with the following command: $ curl -sSL | gpg2 -import. One way of installing Ruby on Rails is by using the Ruby Version Manager, or shortly RVM.įirst, install the required dependencies with the following command: apt install apt-transport-https ca-certificates gnupg2 curl Then, run the following command to make sure that all installed packages on the server are updated to the latest available version apt update & apt upgrade Step 2: Install RVM (Ruby Version Manager) You should get this output: No LSB modules are available.ĭescription: Debian GNU/Linux 11 (bullseye) You can check whether you have the proper Debian version installed on your server with the following command: lsb_release -a Remember to replace IP_Address and Port_Number with your server’s actual IP address and SSH port number respectively. Log in to your Debian VPS with SSH as a root user: ssh -p PORT_NUMBER Step 1: Log in via SSH and update the system Full SSH root access or a user with sudo privileges is also required.For the purposes of this tutorial, we will be using a Debian 11 VPS.Step 2: Install RVM (Ruby Version Manager).Step 1: Log in via SSH and update the system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |