Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…hort
  • Loading branch information...
commit ff89cefaf05caa2fb7721ea5a404b2d95f133370 1 parent fcc1697
Edward Hotchkiss authored
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
2  History.md
@@ -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  package.json
@@ -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
4 test/index.test.js
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.