SailsJS deployment to Heroku, connect to Mongolabs MongoDB -
i right attempting first heroku deployment of sailsjs api. app uses sailsjs v0.11 and sails-mongo 0.11.2. i have updated config/connections.js include connection information mongodb database have hosted free @ mongolab . mongodb: { adapter: 'sails-mongo', url: "mongodb://db-user:password123@ds047812.mongolab.com:47812/testing-db" } also updated config/models.js point adapter. module.exports.models = { connection: 'mongodb', migrate: 'safe' }; this have changed running code locally, when deploy heroku app crashes , error... /home/zacharyhustles/smallchangeapi/node_modules/connect-mongo/lib/connect-mongo.js:186 throw err; ^ @ socket.emit (events.js:107:17) 2015-07-08t19:37:00.778316+00:00 app[web.1]: @ socket.<anonymous> (/app/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/connection/connection.js:534:10) error: error connecting database: failed connect [localhost:27017] how ...