fix: JSON fields handling for MariaDB
This commit is contained in:
@@ -19,7 +19,7 @@ module.exports = {
|
||||
}
|
||||
|
||||
if (process.env.dockerdev) {
|
||||
confPaths.config = path.join(WIKI.ROOTPATH, 'dev/docker/config.yml')
|
||||
confPaths.config = path.join(WIKI.ROOTPATH, `dev/docker-${process.env.DEVDB}/config.yml`)
|
||||
}
|
||||
|
||||
process.stdout.write(chalk.blue(`Loading configuration from ${confPaths.config}... `))
|
||||
|
@@ -84,7 +84,7 @@ module.exports = {
|
||||
throw new Error('No such locale in local store.')
|
||||
}
|
||||
|
||||
//-> Load dev locale files if present
|
||||
// -> Load dev locale files if present
|
||||
if (WIKI.IS_DEBUG) {
|
||||
try {
|
||||
const devEntriesRaw = await fs.readFileAsync(path.join(WIKI.SERVERPATH, `locales/${locale}.yml`), 'utf8')
|
||||
|
Reference in New Issue
Block a user