Ruby on Rails Development on OSX
Author: Zapata
Updated: 10/12/17
http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/#step-2 https://github.com/caskroom/homebrew-cask/blob/master/USAGE.md
Some notes:
i. Install Xcode The installation of Ruby/RoR requires the installation of XCode Command Line Tools
xcode-select --install
ii. Install Homebrew :boom:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
iii. Comment out documentation
echo "gem: --no-document" >> ~/.gemrc
iv. Install Ruby and Rails
curl -L https://get.rvm.io | bash -s stable --auto-dotfiles --autolibs=enable --rails
v. Test your installation so far
type rvm | head -1
this should return:
rvm is a function
and...
ruby -v
rails -v
these should return valid versions for both. If it does, pat yourself on the back. You're done with the core stuff! If not, you may have missed a step, or misstyped. There's no harm in doing it again.
vi. Install Cask :boom:
brew tap caskroom/cask
vii. These commands will install the tools you'll need for class (if you dont have them already) :boom:
brew cask install sublime-text
brew cask install slack
brew cask install iterm2
brew cask install google-chrome
viii. Some extras (if you're up to it, go the extra mile and install these too). This installs the MySQL database, and a GUI
brew install mysql
brew cask install mysqlworkbench
Once MySQL is installed, you can start, and stop the server with these commands
mysql.server start
mysql.server stop
Or if you just want to know what it's doing, do this:
mysql.server status