测试:启动时打印环境

This commit is contained in:
liangtongchuan
2021-03-08 12:14:20 +08:00
parent 6f11ff7014
commit 1ddc8df459

View File

@@ -53,6 +53,7 @@ app.set('name', 'chatofpomelo-websocket');
// 加载数据库和redis
app.configure(function() {
app.loadConfig('database', app.getBase() + '/config/database');
console.log('env:', app.get('env'));
mongoose.connect(app.get('database').mongo, { useNewUrlParser: true, useUnifiedTopology: true, useCreateIndex: true, useFindAndModify: false }, (err) => {
if (err) {