I have successfully installed sails-mongo via npm and am currently running a basic sails.js application. However, my host is not being recognized.
My MongoDB is operational on the default port 27017. Whenever I generate a model, I encounter an error while attempting to run the application:
Below is my adapter.js file - I'm using node v0.10.0 and sails v0.8.895
// Configuring installed adapters
// Any attribute defined in the model definition will override global config settings.
module.exports.adapters = {
// If no specific adapter is specified for a model, 'default' will be used.
'default': 'mongo',
// In-memory adapter for DEVELOPMENT ONLY
memory: {
module: 'sails-dirty',
inMemory: true
},
// Persistent adapter for DEVELOPMENT ONLY
disk: {
// Module 'sails-dirty' is not compatible with node v0.10.0 currently due to limitations in node-dirty
// Refer to https://github.com/felixge/node-dirty/issues/34
// module: 'sails-dirty',
// filePath: './.tmp/dirty.db',
// inMemory: false
},
mongo: {
module : 'sails-mongo',
url : 'mongodb://Chris:DBPASSWORD@localhost:27017/localHostTestDB'
}
};
The user has been added to localHostTestDB with the admin role already.
Your assistance would be greatly appreciated. Thank you!