Created
October 12, 2015 06:52
-
-
Save saboyutaka/c13c2f6be57c00d09fed to your computer and use it in GitHub Desktop.
How build development environment for Mac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Homebrew (skip if it's already installed) | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew update | |
# Install rbenv(if you use zsh, replace .bash_profile with .zprofile) | |
brew install rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile | |
brew install ruby-build | |
brew install rbenv-gemset | |
brew install rbenv-gem-rehash | |
source ~/.bash_profile | |
# Install Ruby | |
rbenv install #{ruby_version} # Check Ruby version | |
gem install rbenv-rehash | |
# Clone the repository from github | |
git clone https://github.com/your/repositry.git | |
cd repositry | |
gem install bundle | |
bundle install --binstubs=vendor/bin --path=vendor/bundle | |
echo 'export PATH="./vendor/bin:$PATH"' >> ~/.bash_profile | |
source ~/.bash_profile | |
# Install middleware management tools | |
brew install postgresql heroku-toolbelt | |
# Build Vagrant to Your PC(local) (Download vagrant from https://www.vagrantup.com if you don't have it.) | |
vagrant up | |
rails s | |
# Access http://localhost:3000 on Browser |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment