Skip to content

Instantly share code, notes, and snippets.

@jchris
Forked from sco/couchdb.yml
Created October 20, 2008 21:59
Show Gist options
  • Save jchris/18187 to your computer and use it in GitHub Desktop.
Save jchris/18187 to your computer and use it in GitHub Desktop.
---
development: &defaults
:url: http://0.0.0.0:5984/gathering
production: &production
<<: *defaults
:url: http://0.0.0.0:5984/gathering
COUCHDB_CONFIG = Erubis.load_yaml_file(Merb.root / "config" / "couchdb.yml")[Merb.environment]
COUCH = CouchRest.database!(COUCHDB_CONFIG[:url])
CouchRest::Model.default_database = COUCH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment