2 ms·
A simple convention, as long as you know the process root: var rootDir = process.cwd(); var config = require(rootDir + '/server/config'); And so forth.
by arxpoetica 13y ago
A simple convention, as long as you know the process root:
var rootDir = process.cwd();
var config = require(rootDir + '/server/config');
And so forth.