LoginSignup
11
9

More than 5 years have passed since last update.

Railsエンジニア-Mac開発環境ガイド

Last updated at Posted at 2016-02-01

適応OS

Mac OS

開発ツール

iTerm 便利な開発terminal [Option]

iTermをインストール

公式サイト:https://www.iterm2.com/

oh-my-zsh terminalをカラフルに [Option]

oh-my-zshをインストールする

公式サイト:https://github.com/robbyrussell/oh-my-zsh

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Homebrew - Macパッケージ管理ツール

homebrewをインストールする

公式サイト:http://brew.sh/

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

Ruby環境

rbenv - Rubyバージョン管理ツール

rbenvをインストールする

公式サイト:https://github.com/rbenv/rbenv

brew update
brew install rbenv ruby-build

ruby - 指定のRubyバージョンをインストール

Rubyをインストール(社内デフォルトバージョン:2.1.4)

rbenv install 2.1.4
rbenv global 2.1.4

Mysql環境

Mysqlインストール

homebrewでMysqlをインストールする

brew install mysql

Mysqlを起動する

brew tap homebrew/services
brew services start mysql
brew services list

Sequel Pro

sequelproをインストールする

公式サイト:http://www.sequelpro.com/

Git設定[Option]

git設定ファイル~/.gitconfigの参考例です

[user]
       name = xxxx
       email = xxxxx@gmail.com
[push]
       default = simple
[alias]
       up = !git pull --rebase --prune $@ && git submodule update --init --recursive
       co = checkout
       cob = checkout -b
       cm = !git add -A && git commit -m
       s = status
       d = diff
11
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
9