Skip to content

Instantly share code, notes, and snippets.

@skplunkerin
Created August 26, 2016 01:11
Show Gist options
  • Save skplunkerin/046014cf217372177e0be4ba5a39e5ae to your computer and use it in GitHub Desktop.
Save skplunkerin/046014cf217372177e0be4ba5a39e5ae to your computer and use it in GitHub Desktop.
ruby on rails local environment recipe
# Install Git and Ruby
$ sudo apt-get install git ruby

# Install Node v5 (or higher)
(https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions)

$ curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
$ sudo apt-get install -y nodejs build-essential

# Install RVM (Ruby Version Manager)
$ \curl -sSL https://get.rvm.io | bash -s stable

# Install the version of Ruby you need
$ rvm install ruby-2.2.2

# If you want to see versions available for install
$ rvm list remote

# Now set your version as the default:
$ rvm use ruby-2.2.2 --default

# Install Rails and Bundler
$ gem install bundler rails

# Create a Rails project
$ rails new new_rails_project_name_here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment