Last active
December 20, 2015 05:39
-
-
Save edwardloveall/6080327 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Loosely based off http://blog.willj.net/2011/05/31/setting-up-postgresql-for-ruby-on-rails-development-on-os-x/ | |
| # Alternatively, look at: https://www.codefellows.org/blogs/how-to-install-postgresql | |
| # Last updated 7/25/13 | |
| brew install postgres | |
| initdb /usr/local/var/postgres | |
| mkdir -p ~/Library/LaunchAgents | |
| ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents | |
| launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist | |
| pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start | |
| # Restart computer |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Alternatively, use Postgres.app