Skip to content

Instantly share code, notes, and snippets.

@p5150j
Created September 7, 2011 18:46
Show Gist options
  • Select an option

  • Save p5150j/1201362 to your computer and use it in GitHub Desktop.

Select an option

Save p5150j/1201362 to your computer and use it in GitHub Desktop.
fresh ruby on rails app
install homebrew
sudo mkdir /usr/local
sudo chown -R $USER /usr/local
curl -Lsf http://github.com/mxcl/homebrew/tarball/master | tar xvz -C /usr/local —strip 1
install git
brew install git
brew update
brew install wget
brew install mysql
brew install memcached
brew install postgres
brew install redis
brew install mongodb
brew list
next is install rvm
mkdir -p ~/.rvm/src/ && cd ~/.rvm/src && rm -rf ./rvm/ && git clone git://github.com/wayneeseguin/rvm.git && cd rvm && ./install
Add the following line to the end of your .profile or .bash_profile or .bashrc file (be sure to edit your user name).
if [[ -s /Users/YOUR_USERNAME/.rvm/scripts/rvm ]] ; then source /Users/YOUR_USERNAME/.rvm/scripts/rvm ; fi
rvm install 1.8.7
rvm install 1.9.2
rvm default 1.9.2
ruby -v
which ruby
gem install rails 3.0
Actual app........
cd ~/Desktop
rails new app_name
cd app_name
rails server
localhost:3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment