测试:打印数据库地址

This commit is contained in:
liangtongchuan
2021-03-08 12:21:35 +08:00
parent 1ddc8df459
commit f34a97c680

View File

@@ -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) {