Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save edwardloveall/6080327 to your computer and use it in GitHub Desktop.

Select an option

Save edwardloveall/6080327 to your computer and use it in GitHub Desktop.
# 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
@edwardloveall
Copy link
Author

Alternatively, use Postgres.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment