Skip to content

Instantly share code, notes, and snippets.

@thomasritz
Created November 23, 2009 18:46
Show Gist options
  • Save thomasritz/241268 to your computer and use it in GitHub Desktop.
Save thomasritz/241268 to your computer and use it in GitHub Desktop.
# (Gem install did not work with PostgreSQL binary from enterprisedb.)
#
# - Install PostgreSQL with homebrew (requires XCode):
# cd $HOME/d/other
# git clone git://github.com/mxcl/homebrew.git
# cd homebrew
# brew install postgresql
# - Add $HOME/d/other/homebrew/bin to $PATH
# - Follow the further instructions:
# initdb $HOME/d/other/homebrew/var/postgres
# launchctl load -w $HOME/d/other/homebrew/Cellar/postgresql/8.4.0/org.postgresql.postgres.plist
# - Install the Gem:
# env ARCHFLAGS="-arch x86_64" gem install postgres
# - Install Rails DBs:
# createdb XXX_development
# createdb XXX_test
development:
adapter: postgresql
encoding: unicode
database: xyz_development
pool: 5
username: <%= %x(whoami) %>
password:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment