mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
fixed #936
This commit is contained in:
@@ -121,6 +121,10 @@ var async = require('async'),
|
|||||||
password: databaseConfig['redis:password'],
|
password: databaseConfig['redis:password'],
|
||||||
database: databaseConfig['redis:database']
|
database: databaseConfig['redis:database']
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (config.redis.host.slice(0, 1) === '/') {
|
||||||
|
delete config.redis.port;
|
||||||
|
}
|
||||||
} else if (config.database === 'mongo') {
|
} else if (config.database === 'mongo') {
|
||||||
config.mongo = {
|
config.mongo = {
|
||||||
host: databaseConfig['mongo:host'],
|
host: databaseConfig['mongo:host'],
|
||||||
|
|||||||
Reference in New Issue
Block a user