Skip to content

Instantly share code, notes, and snippets.

@nu12
Created November 24, 2020 14:10
Show Gist options
  • Select an option

  • Save nu12/44ca986b79ece48ef4becc6d99569879 to your computer and use it in GitHub Desktop.

Select an option

Save nu12/44ca986b79ece48ef4becc6d99569879 to your computer and use it in GitHub Desktop.
Install Ruby and Rails using RVM

RVM

$ gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
$ curl -sSL https://get.rvm.io | bash -s stable
$ curl -sSL https://get.rvm.io | bash -s stable --rails
$ source ~/.rvm/scripts/rvm

Ruby

$ rvm requirements
$ rvm install 2.7
$ rvm use 2.7 --default

Change version accordingly.

Node and Yarn (dependencies)

$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
$ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
$ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
$ sudo apt-get update && sudo apt-get install nodejs yarn

Rails

$ gem install rails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment