Permalink
Browse files

changelog, connect to process.env.MONGO_DB over mongodb://localhost/s…

…hort
  • Loading branch information...
1 parent fcc1697 commit ff89cefaf05caa2fb7721ea5a404b2d95f133370 Edward Hotchkiss committed Dec 20, 2011
Showing with 5 additions and 3 deletions.
  1. +1 −1 History.md
  2. +1 −1 package.json
  3. +3 −1 test/index.test.js
View
@@ -1,5 +1,5 @@
-0.2.7 / 2011-12-18
+0.2.8 / 2011-12-18
==================
* Added gun.io whitespace changes, version bump
View
@@ -2,7 +2,7 @@
"author": "Edward Hotchkiss <e@ingk.com>",
"name": "short",
"description": "NodeJS URL Shortener backed by MongooseJS",
- "version": "0.2.7",
+ "version": "0.2.8",
"repository": {
"type": "git",
"url": "git://github.com/edwardhotchkiss/short.git"
View
@@ -12,7 +12,9 @@ var vows = require('vows'),
Connect to MongoDB
*/
-short.connect('mongodb://localhost/short');
+var MONGO_DB = process.env.MONGO_DB || 'mongodb://localhost/short';
+
+short.connect(MONGO_DB);
/*!
Vows / npm test

0 comments on commit ff89cef

Please sign in to comment.