1
This commit is contained in:
parent
a874b90b0d
commit
98a332cf5c
5
app.js
5
app.js
@ -141,6 +141,10 @@ function addStaticDirectory(path, dir) {
|
|||||||
app.use(path, express.static(dir));
|
app.use(path, express.static(dir));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getPid() {
|
||||||
|
return process.pid;
|
||||||
|
}
|
||||||
|
|
||||||
function getNodeId() {
|
function getNodeId() {
|
||||||
return Number(utils.getArgv('n'));
|
return Number(utils.getArgv('n'));
|
||||||
}
|
}
|
||||||
@ -171,5 +175,6 @@ exports.useMiddleware = useMiddleware;
|
|||||||
exports.registerDb = registerDb;
|
exports.registerDb = registerDb;
|
||||||
exports.getDbConn = getDbConn;
|
exports.getDbConn = getDbConn;
|
||||||
exports.addStaticDirectory = addStaticDirectory;
|
exports.addStaticDirectory = addStaticDirectory;
|
||||||
|
exports.getNodeId = getPid;
|
||||||
exports.getNodeId = getNodeId;
|
exports.getNodeId = getNodeId;
|
||||||
exports.getInstanceId = getInstanceId;
|
exports.getInstanceId = getInstanceId;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user