Skip to content

Instantly share code, notes, and snippets.

@yosukehasumi
Created March 20, 2019 17:00
Show Gist options
  • Select an option

  • Save yosukehasumi/ab3003a80ac712500ed1b9e4a19dcdc2 to your computer and use it in GitHub Desktop.

Select an option

Save yosukehasumi/ab3003a80ac712500ed1b9e4a19dcdc2 to your computer and use it in GitHub Desktop.
Rails setup local

Install Homebrew (package manager)

https://docs.brew.sh/Installation

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install RBENV using Homebrew (ruby manager)

https://github.com/rbenv/rbenv#homebrew-on-macos

brew install rbenv;
rbenv init;

Install Ruby 2.5.3 using RBENV

rbenv install 2.5.3; #this will take a while
rbenv global 2.5.3; #set it as global

Install Rails and Bundler

gem install rails -v 5.2.2
gem install bundler

Install MYSQL using BREW (if you don't have it already) https://gist.github.com/operatino/392614486ce4421063b9dece4dfe6c21

brew install mysql@5.7
brew services start mysql@5.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment