Merge pull request #40 from Jaculabilis/ipp-config
Enable locating config.json at IPP_CONFIG
This commit is contained in:
@@ -3,7 +3,7 @@ import { Response } from 'express-serve-static-core'
|
||||
|
||||
let config = {}
|
||||
try {
|
||||
const configJson = require('../config.json')
|
||||
const configJson = require(process.env.IPP_CONFIG || '../config.json')
|
||||
if (typeof configJson === 'object') config = configJson
|
||||
} catch (e) { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user