[Continued from Part 1: How to install Rails and MySQL in Mavericks OSX]
In Part 1, we installed Xcode, Homebrew, RVM, MySQL, and upgraded to the latest stable release of Ruby.
In Part 2, we install Git, Github, Gems, and Rails.
Install and configure Git
brew install git
I followed my Git notes here
Github
Generate SSH keys
While following the guide above, I set up a repository at Github called project1 to match the local repository I had previously initialized. The only purpose of "project1" was to set up and test Github connectivity.
Set up GitHub repository
cd to the project1 subdirectory and run the following commands:
touch hello.txt
git init
git add .
git commit -m "first commit"
git remote add origin git@github.com:<yourusername>/project1.git
git push -u origin master
Now that we know we can push to Github, we can remove the test files. Remove project1 from both the local host and Github.
Gems
rvm install ruby
rvm use ruby --default
rvm rubygems current
This bumped me up to Ruby 2.1.0 and installed rubygems (among other things).
Rails
And - FINALLY - install Rails:
gem install rails
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.