Closed davidosomething closed 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
fixed with #16
You should close this, innit?
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