Bugfix for config.json not being read.
This commit is contained in:
parent
95eb700a21
commit
ce7bcef0d8
1 changed files with 1 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
/* jshint esversion: 6, asi: true, node: true */
|
/* jshint esversion: 6, asi: true, node: true */
|
||||||
// app.js
|
// app.js
|
||||||
|
|
||||||
|
var fs = require('fs')
|
||||||
var path = require('path')
|
var path = require('path')
|
||||||
var nodeRoot = path.dirname(require.main.filename)
|
var nodeRoot = path.dirname(require.main.filename)
|
||||||
var configPath = path.join(nodeRoot, 'config.json')
|
var configPath = path.join(nodeRoot, 'config.json')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue