cham / TeslaAPI

Tesla forum database and RESTful API
11 stars 9 forks source link

scaling: read mongodb info from provisioned env #15

Closed davidosomething closed 10 years ago

davidosomething commented 10 years ago

in https://github.com/cham/TeslaAPI/blob/master/src/db/db.js instead of localhost, use process.env.mongoHost and so on for username/pw/port

The API server should have these env variables configured during provisioning MongoDB should eventually be hosted on its own server/vm/container This way you can scale to multiple API servers since the db server is not hosted locally

ericlindstrom commented 10 years ago

fixed with #16

JosephCarrington commented 10 years ago

You should close this, innit?