metamaps--metamaps/doc/MacInstallation.md

44 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

# 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
2014-09-21 23:19:19 +00:00
2014-09-21 23:18:32 +00:00
\curl -sSL https://get.rvm.io | bash -s stable --rails
2014-11-05 16:48:28 +00:00
rvm install 2.1.3 --with-gcc=clang
2014-11-05 16:35:40 +00:00
rvm use 2.1.3
2014-09-21 23:18:32 +00:00
gem install lunchy
Now install homebrew.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2014-09-21 23:18:32 +00:00
Then install nodejs
brew install nodejs
And postgresql:
2014-09-21 23:18:32 +00:00
brew install postgresql
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
createuser metamaps -P -s -d
Set a password, then start the service:
2014-09-21 23:18:32 +00:00
lunchy start postgres
Change directory to the metamaps git repository, and run:
2014-09-21 23:18:32 +00:00
bundle install
Copy the .example-env file and rename it to .env. Then modify the DB_USERNAME and DB_PASSWORD values to match the postgres username and password you set
2014-09-21 23:18:32 +00:00
rake db:create
rake db:schema:load
rake db:fixtures:load
rails server
Now open a browser to http://localhost:3000!