我想将 MongoDB 与 Geddy 一起使用。我已经编辑了我的“production.js”文件,但它似乎不起作用......我不记得我的 MondoDB 用户名和密码......
我收到此错误:错误:500 内部服务器错误
生产.js:
var config = {
detailedErrors: false
, hostname: null
, port: 4000
, model: {
defaultAdapter: 'mongo'
}
, db: {
mongo: {
username: 'root'
, dbname: 'anthonycluse'
, prefix: null
, password: 'root'
, host: 'localhost'
, port: 27017
}
}
};
module.exports = config;
更新
命令 :
geddy gen secret
配置.js:
var config = {
detailedErrors: true
, debug: true
, hostname: null
, port: 4000
, model: {
defaultAdapter: 'mongo'
}
, db: {
mongo: {
dbname: 'anthonycluse'
, host: 'localhost'
, port: 27017
}
}