From 767414ad9f9feb8d8d959d5b0407df5fad8bd125 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Tue, 25 Jul 2017 16:37:16 -0700 Subject: [PATCH] Update MacInstallation.md --- doc/MacInstallation.md | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/doc/MacInstallation.md b/doc/MacInstallation.md index 50e0bd06..9fdedabe 100644 --- a/doc/MacInstallation.md +++ b/doc/MacInstallation.md @@ -1,21 +1,19 @@ # 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 - -Some of these steps are pulled from http://www.moncefbelyamani.com/how-to-install-postgresql-on-a-mac-with-homebrew-and-lunchy/ - -Install homebrew +Install rvm (ruby version manager) \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 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)" -Then install nodejs and ES6 code +Then install nodejs (make sure its version 6.11.1 or greater) brew install nodejs npm install @@ -29,7 +27,7 @@ And postgresql: Set a password, then start the service: - lunchy start postgres + brew services start postgresql 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 Now open a browser to http://localhost:3000! + +To start the realtime server: + + cd realtime + node realtime-server.js