-
Install Sublime Text from here
-
Install Xcode from the AppStore
-
Open Xcode and accept the licence
-
Install command line tools. From the terminal run:
xcode-select --install
-
Install homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
Run brew doctor
brew doctor
-
Update homebrew
brew update
-
Install git
brew install git
-
Install RVM
curl -L https://get.rvm.io | bash -s stable --autolibs=enabled source ~/.rvm/scripts/rvm
-
Install Ruby
rvm install 2.4.4
-
Set default Ruby version
rvm use 2.4.4 --default
-
Install rails and bundler
gem install rails bundler --no-ri --no-rdoc
-
Install wget
brew install wget
-
Configure git
ssh-keygen -t rsa -C "YOUR GENERATED EMAIL" git config --global user.email "YOUR EMAIL" git config --global user.name "YOUR NAME" git config --global core.editor "subl -w" git config --global color.ui true
-
Configure Sublime
15.1. Createsubl
commandsudo mkdir -p /usr/local/bin/ && sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
15.2. Install package manager as shown here
15.3. Configure user settings (Sublime Text -> Preferences -> Settings){ "ensure_newline_at_eof_on_save": true, "font_size": 12, "show_encoding": true, "tab_size": 2, "translate_tabs_to_spaces": true, "trim_trailing_white_space_on_save": true }
-
Install mysql
brew install mysql brew services start mysql
-
Install Postgres app from here
-
Configure PATHs:
Openbash_profile
:nano ~/.bash_profile
Paste the following:
export PATH=$PATH:/usr/local/bin export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin
Save those changes and exit.
Finally, apply those changes:
source ~/.bash_profile
-
Open
psql
(typepsql
in your terminal) and run:CREATE USER postgres SUPERUSER;
-
General MAC OS config
Show Path bar in Finderdefaults write com.apple.finder ShowPathbar -bool true
Show Status bar in Finder
defaults write com.apple.finder ShowStatusBar -bool true
-
Other
21.1. Install libxsltbrew install libxslt
21.2. Configure no doc
subl ~/.gemrc
Paste this:
install: --no-rdoc --no-ri update: --no-rdoc --no-ri
21.3. Add aliases:
subl ~/.gitconfig
Add the following
[alias] ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat tree = log --oneline --decorate --all --graph
-
JUST IF ERRORS APPEAR WHILE BUNDLING:
gem uninstall libv8 brew install v8 gem install therubyracer gem install libv8 -v '3.16.14.3' -- --with-system-v8
Last active
January 26, 2020 12:37
-
-
Save jpbalarini/9a05c38b0456eaece883 to your computer and use it in GitHub Desktop.
Mac OS Sierra Rails development
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment