It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In RegisterIt looks like you're new here. If you want to get involved, click one of these buttons!
apt-get update && apt-get -y upgradeAlso, you will be required to install Curl at some point, why not at the beginning:
apt-get install curl -yInstallation
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 cd /tmp && \curl -sSL https://get.rvm.io -o rvm.sh cat /tmp/rvm.sh | bash -s stableBefore starting to use RVM, you need to execute one more command:
source /usr/local/rvm/scripts/rvmYou can list all available Ruby versions:
rvm list knownYou will be presented with a list of available versions, like example below:
rvm install 2.4.1Once you install Ruby, you can check the version with the following command:
ruby --versionYou will see something like:
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
gem install railsYou can check Rails version at any time as well:
rails -vResults should be as following:
Rails 5.1.4
mkdir new cd newThen we will set what version of Ruby will be used:
rvm use ruby-2.4.1@new --ruby-version --createAs well as installing Rails to this specific gemset for your specific application:
gem install railsAfter that just start the new project:
rails new time4vps