Skip to content

Instantly share code, notes, and snippets.

@ybart
Last active August 29, 2015 14:04
Show Gist options
  • Save ybart/ac493de28ff6aa201b48 to your computer and use it in GitHub Desktop.
Save ybart/ac493de28ff6aa201b48 to your computer and use it in GitHub Desktop.
# Install ruby with RVM and Homebrew
$ xcode-select --install
$ gcc --version
$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
$ brew doctor
$ \curl -sSL https://get.rvm.io | bash -s stable --ruby
# Install PostgreSQL
$ brew install postgres
$ ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
# Install Redis
$ brew install Redis
$ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
# Configure Git
$ git config --global color.ui true
$ git config --global user.name "YOUR NAME"
$ git config --global user.email "YOUR@EMAIL.com"
# Use your SSH key to get Rails application or create a new one
$ ssh-keygen
$ pbcopy < ~/.ssh/id_rsa.pub
$ git clone git@bitbucket.org:...
# Run tests and launch Rails application
$ bundle
$ rake db:create db:migrate
$ rake
$ rails s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment