Update MacInstallation.md

This commit is contained in:
Connor Turland 2017-07-25 16:37:16 -07:00 committed by GitHub
parent 1ec897b8c8
commit 767414ad9f

View file

@ -1,21 +1,19 @@
# OSX Install # OSX Install
If you are doing an upgrade and or recent pull for changes you will need to change your default ruby package from 2.1.1 to ruby 2.1.2 Install rvm (ruby version manager)
Some of these steps are pulled from http://www.moncefbelyamani.com/how-to-install-postgresql-on-a-mac-with-homebrew-and-lunchy/
Install homebrew
\curl -sSL https://get.rvm.io | bash -s stable --rails \curl -sSL https://get.rvm.io | bash -s stable --rails
Use rvm to install Ruby version 2.3.0
rvm install 2.3.0 --with-gcc=clang rvm install 2.3.0 --with-gcc=clang
rvm use 2.3.0 rvm use 2.3.0
gem install lunchy
Now install homebrew. Now install homebrew. (a package manager for mac)
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then install nodejs and ES6 code Then install nodejs (make sure its version 6.11.1 or greater)
brew install nodejs brew install nodejs
npm install npm install
@ -29,7 +27,7 @@ And postgresql:
Set a password, then start the service: Set a password, then start the service:
lunchy start postgres brew services start postgresql
Change directory to the metamaps git repository, and run: Change directory to the metamaps git repository, and run:
@ -43,3 +41,8 @@ Copy the .example-env file and rename it to .env. Then modify the DB_USERNAME an
rails server rails server
Now open a browser to http://localhost:3000! Now open a browser to http://localhost:3000!
To start the realtime server:
cd realtime
node realtime-server.js