Skip to content

Instantly share code, notes, and snippets.

@eoy
Last active October 7, 2015 14:08
Show Gist options
  • Save eoy/3177019 to your computer and use it in GitHub Desktop.
Save eoy/3177019 to your computer and use it in GitHub Desktop.
  1. Install GCC Compiler or XCode

Options (choose one)

  1. Install Homebrew (package manager)

In shell:

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

In shell:

	brew install git
  1. Install databases and server (these might conflict with existing installations so be aware)
	brew install mongodb
	brew install mysql
	brew install nginx
  1. Install a ruby version manager (rbenv)
	brew install rbenv ruby-build
  1. Add rbenv path to your bash profile. If you use ZSH, replace .bash_profile with .zshrc
	echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
	echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
	exec $SHELL
  1. Install newest version of Ruby
	rbenv install <latest-version>
	rbenv rehash
  1. Set the newest version to system default
	rbenv global <latest-version>
  1. Install a ruby gem-manager
	gem install bundler
  1. Update Rubygems
	gem update --system"
  1. Install Rails
	gem install rails
  1. Install all Gems for an application

Go into application folder and:

	bundle install
  1. Run local server

Go into application folder and:

	rails server

Visit: localhost:3000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment