Bugfix for config.json not being read.

This commit is contained in:
Nuno Santos 2019-06-11 10:18:43 +02:00
parent 95eb700a21
commit ce7bcef0d8

View file

@ -2,6 +2,7 @@
/* jshint esversion: 6, asi: true, node: true */
// app.js
var fs = require('fs')
var path = require('path')
var nodeRoot = path.dirname(require.main.filename)
var configPath = path.join(nodeRoot, 'config.json')