如何连接arangodb与风帆

时间:2018-01-17 04:32:17

标签: sails.js arangodb

我试图使用sails-arangodb将帆连接到arangodb。我按照本指南:Arangodb use case guide连接到arangodb。但我面临错误:

error: Error: The hook `orm` is taking too long to load. Make sure it
is triggering its `initialize()` callback, or else set `sails.conf
g.orm._hookTimeout to a higher value (currently 20000)
at Timeout.tooLong [as _onTimeout] (C:\Users\thanhtv\AppData\Roaming\npm\no
e_modules\sails\lib\app\private\loadHooks.js:85:21)
at ontimeout (timers.js:475:11)
at tryOnTimeout (timers.js:310:5)
at Timer.listOnTimeout (timers.js:270:5)

这是我的connections.js

    module.exports.connections = {

    localArangoDB: {
        adapter: 'sails-arangodb',
        host: '192.168.0.152',
        port: 8529,
//        user: 'root',
//        password: 'root',
        database: {
            name: 'test',
            graph: 'test'
        }
//        database: 'test',
//
//        graph: 'test', // ArangoDB specific 
//        collection: 'test', // ArangoDB specific 
    },

};

这是我的models.js

module.exports.models = {

    connection: 'localArangoDB',

    migrate: 'alter'

};

我错过了什么?

0 个答案:

没有答案