Skip to content

Latest commit

 

History

History
143 lines (97 loc) · 2.3 KB

manual_setup.md

File metadata and controls

143 lines (97 loc) · 2.3 KB

Rails Development Environment on OS X Sierra

Command Line Tools

$ xcode-select --install

Homebrew

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

Homebrew Cask

$ brew tap caskroom/cask

GUI Software

$ brew cask install google-chrome firefox iterm2 sublime-text caffeine google-drive github-desktop sequel-pro spotify imageoptim skype slack superduper qlmarkdown

Rbenv and Ruby

$ brew install rbenv
$ rbenv init

Add rbenv to bash

$ echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
$ source ~/.bash_profile

Install Ruby 2.4.1 and set it as the default version

$ rbenv install 2.4.1
$ rbenv global 2.4.1

$ ruby -v
# ruby 2.4.1

Java SDK

Download Java SDK from oracle and install it

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Install maven (mvm command)

brew install maven

Install IntelliJ Idea Community Edition

brew cask install intellij-idea-ce

bash-it

$ git clone --depth=1 https://github.com/Bash-it/bash-it.git ~/.bash_it
$ ~/.bash_it/install.sh
$ bash-it enable plugin git ruby rbenv

Download and install Source Code Pro font

Source Code Pro

Install Sublime Text package Control

Instructions

Install required Gems for SublimeLinter-*

$ gem install scss-lint
$ gem install rubocop
$ gem install haml

Install Node and required pagages for SublimeLinter-*

$ brew install node
$ npm install -g jshint
$ npm install -g coffeelint

Optional

Postgres

$ brew cask install postgres
$ brew cask install postico

Install pg-Gem

$ gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/latest/bin/pg_config

Mysql

$ brew install mysql

Other usefull packages

$ brew install imagemagick

Useful Gems

$ gem install bundler
$ gem install byebug
$ gem install mysql2

Change mysql config to allow more memory consumption

echo "max_allowed_packet=256M" >> /usr/local/etc/my.cnf
mysql.server restart