Permalink
Browse files

Separate DB server config from DB config.

  • Loading branch information...
1 parent 9a1f0f5 commit 3b794b6445d6ae0cf7c1de7eb658caa1614b9671 @dustin committed Aug 30, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 tools/fetch.py
View
@@ -14,9 +14,9 @@
import feedparser
-SERVER = os.getenv("COUCHDB") or 'http://127.0.0.1:5984/'
+SERVER = os.getenv("COUCHDB_SERVER") or 'http://127.0.0.1:5984/'
-DB = couchdb.Server(SERVER)['readme']
+DB = couchdb.Server(SERVER)[os.getenv("COUCHDB") or 'readme']
ISO8601 = "%Y-%m-%dT%H:%M:%S"

0 comments on commit 3b794b6

Please sign in to comment.