测试:打印数据库地址
This commit is contained in:
@@ -54,6 +54,7 @@ app.set('name', 'chatofpomelo-websocket');
|
||||
app.configure(function() {
|
||||
app.loadConfig('database', app.getBase() + '/config/database');
|
||||
console.log('env:', app.get('env'));
|
||||
console.log('db:', app.get('database'));
|
||||
|
||||
mongoose.connect(app.get('database').mongo, { useNewUrlParser: true, useUnifiedTopology: true, useCreateIndex: true, useFindAndModify: false }, (err) => {
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user