Created
September 13, 2012 09:07
-
-
Save daz/3713077 to your computer and use it in GitHub Desktop.
Get up and going in Rails
This file contains 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 textmate | |
https://github.com/textmate/textmate/downloads | |
# install command line tools for mountain lion | |
# need this for homebrew apparently | |
https://developer.apple.com/downloads/index.action | |
# change shell to zsh | |
# has better tab completion and makes terminal easier | |
chsh -s /bin/zsh | |
# install homebrew | |
# homebrew makes it easy to compile linux/unix shit | |
# http://mxcl.github.com/homebrew/ | |
ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go) | |
# install git | |
# version control. lots of ruby shit relies on git | |
brew install git | |
# install rbenv | |
# a ruby version manager. makes it easy to install versions of ruby | |
brew install rbenv | |
brew install ruby-build | |
# rbenv might tell you do run something like this | |
# but we're using zsh so just copy this | |
# not 100% sure this will work | |
# afterwards, close your terminal window and open a new one, hopefully no errors come up | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshenv | |
echo 'eval "$(rbenv init -)"' >> ~/.zshenv | |
# might need to do this too | |
echo 'source $HOME/.zshenv' >> ~/.zshrc | |
# use rbenv to install latest ruby | |
rbenv install 1.9.3-p194 | |
# set 1.9.3-p194 as default | |
rbenv global 1.9.3-p194 | |
# check ruby version is 1.9.3-p194 | |
# if anything doesn't work, reload your shell (close/open terminal window) | |
ruby -v | |
# install bundler and rails | |
gem install bundler | |
gem install rails | |
# make a folder in your home dir called Code | |
# all the cool kids do this | |
mkdir ~/Code | |
# go into that directory | |
cd ~/Code | |
# make a new rails app | |
rails new mydeadlyapp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment