== README
This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
-
Ruby version
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
-
...
- Update Homebrew’s package database: brew update
- Install Postgres: brew install postgres
- Finish creating the database: initdb /usr/local/var/postgres
- Start running Postgres at login a) mkdir -p ~/Library/LaunchAgents b) ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents c) launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
pg_ctl -D /usr/local/var/postgres stop -s -m fast
createuser -s -r book_user
rake db:create
rake db:migrate