metamaps--metamaps/MacInstallation.md

43 lines
939 B
Markdown
Raw Permalink Normal View History

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
2014-09-21 23:18:32 +00:00
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-09-21 23:18:32 +00:00
2014-11-05 16:35:40 +00:00
rvm use 2.1.3
2014-09-21 23:18:32 +00:00
gem install lunchy
(http://www.moncefbelyamani.com/how-to-install-postgresql-on-a-mac-with-homebrew-and-lunchy/)
brew install postgresql
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
createuser metamaps -P -s -d
set a password
lunchy start postgres
cd into the metamaps directory
bundle install
copy the database.yml.default file and rename it database.yml
make sure the username and password match the POSTGRES username and password you set
http://nodejs.org/ hit install, download, open, install
rake db:create
rake db:schema:load
rake db:fixtures:load
rails s
2014-09-21 23:19:19 +00:00
2014-09-21 23:18:32 +00:00
( to start the server)