Isaac Sloan - Setting up MacOS Sierra for Rails Development

Setting up MacOS Sierra for Rails Development

One of the only differences I've noticed is installing mysql is slightly different.

Step 1: Install XCode Command Line Tools

Install xcode.

xcode-select --install

Step 2: Install and prepare Homebrew

ruby -e "$(curl -fsSL"
brew doctor
brew update

Step 3: Install rbenv

brew install rbenv ruby-build openssl
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source ~/.bash_profile

Step 4: Install Ruby

Run rbenv install --list and choose the version of ruby that you want.

rbenv install --list
Available versions:
rbenv install 2.2.1
rbenv rehash
rbenv global 2.2.1
gem install bundler
gem install rails
rbenv rehash
echo 'gem: --no-rdoc --no-ri' >> ~/.gemrc

Step 5: Install ImageMagick

brew install sqlite3 imagemagick

Step 6: Install Mysql

The next steps are necessary to create a mysql database.

Option 1: Install with dmg installer.

Option 2: Install from command line with Homebrew
brew install mysql
unset TMPDIR
mysqld --initialize-insecure --user=$(whoami) --basedir=$(brew --prefix mysql) --datadir=$(brew --prefix)/var/mysql --tmpdir=/tmp
mkdir -p ~/Library/LaunchAgents
ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist

Step 7: Tools you should have

cd ~
curl | sh
curl -L | sh
curl -L -o dotfiles.tar.gz
tar -xzf dotfiles.tar.gz 
ruby dotfiles-master/install.rb
brew install macvim

# GUI apps you might want! Thanks to jpotts for this list.
brew install caskroom/cask/brew-cask

brew cask install bettertouchtool
brew cask install dropbox
brew cask install google-drive
brew cask install google-chrome
brew cask install slack
brew cask install iterm2
brew cask install sequel-pro

Hot keys are extremely useful and can be setup for most used apps with the following programs:

Better Touch Tool



December 15, 2016
comments powered by Disqus