Fix loading redbrick-interpreters.json file.
This commit is contained in:
parent
a2b40a67ad
commit
b54464e922
2 changed files with 2 additions and 2 deletions
2
index.js
2
index.js
|
@ -63,7 +63,7 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e
|
||||||
".php": ["php-cgi"]
|
".php": ["php-cgi"]
|
||||||
};
|
};
|
||||||
var exttointerpreteruser = {};
|
var exttointerpreteruser = {};
|
||||||
fs.readFile(__dirname + "/redbrick-interpreters.json", function (err, data) {
|
fs.readFile(__dirname + "/../../../redbrick-interpreters.json", function (err, data) {
|
||||||
if (!err) {
|
if (!err) {
|
||||||
try {
|
try {
|
||||||
exttointerpreteruser = JSON.parse(data.toString());
|
exttointerpreteruser = JSON.parse(data.toString());
|
||||||
|
|
2
mod.info
2
mod.info
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"name": "DorianTech RedBrick CGI engine for SVR.JS",
|
"name": "DorianTech RedBrick CGI engine for SVR.JS",
|
||||||
"version": "Nightly-GitMaster"
|
"version": "Nightly-GitMain"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue