I get this error: a hook ('orm') failed to load when trying to lift a sails app using mongoDB. This my connections.js file:
module.exports.connections = {
mongodb: {
adapter : 'sails-mongo',
host : 'localhost',
port : 27017,
database : 'mydb1'
}
};
And this is my models.js file:
module.exports.models = {
connection: 'mongodb'
};
And this is my local.js file:
module.exports = {
connections: {
mongodb: {
host : 'localhost',
port : 27017,
database : 'mydb1'
}
}
}
Sails v 0.10.1
Any idea why this could be happening?
Thanks
npm install sails-mongo
) – Volvulusmongo
client? – Winburnmongo
in your console to test that you can connect. If that fails, the issue is likely that you need to start the server. A quick Google for "start mongo server <your system type>" should help there. – Winburnlocal.js
. That isn't necessary and haven to connections with the same name could also be a problem – Friedland