Development Environment for Who’s Hungry?
1. Setting up Ruby
visit
http://rvm.io
and install RVM through curl.
‘’'bash
$ \curl -sSL https://get.rvm.io | bash -s stable
‘''
Then, you enable bash_profile for later install.
$ source .bash_profile
We’re currently using Ruby 2.2.0 version, therefore
$ rvm install 2.2.0
2. Setting up Rails
Install rails 4.2.0 , with command (with out documentations, and two “-“s in front of no)
‘’’bash
gem install rails —no-ri —nordoc
‘''
3. Install PostgreSQL
brew install postgresql
To have launchd start postgresql at login:
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
Then to load postgresql now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
Or, if you don't want/need launchctl, you can just run:
postgres -D /usr/local/var/postgres