milewise/mongode — Issue #5: how to connect with process.env to mongo hq?
Author: gradus
Created: 2012-02-24 02:05:27+00:00
State: open

can connect to localhost no problem as documented in the readme, but I want to do something like this on nodejitsu.

db = mongode.connect(process.env.MONGODB or 'scoreboard', process.env.MONGO or '127.0.0.1', port: process.env.MONGOPORT or 27017)

any ideas on what to set MONGO, MONGODB or possibly MONGOPORT to?
not sure exactly what the additional options are for mongode.connect.

tried something like this...

data: MONGOPORT: 10056,
data: MONGO: 'nodejitsu:@staff.mongohq.com',
data: MONGODB: 'nodejitsudb

can't seem to connect.
any help in the right direction is greatly appreciated.

'