Browse Source
fix to properly configure "debug"
fix-133-memory-crash
Dan Janosik
6 years ago
No known key found for this signature in database
GPG Key ID: C6F8CE9FFDB2CED2
1 changed files with
5 additions and
0 deletions
-
app.js
|
|
@ -13,6 +13,11 @@ configPaths.filter(fs.existsSync).forEach(path => { |
|
|
|
dotenv.config({ path }); |
|
|
|
}); |
|
|
|
|
|
|
|
// debug module is already loaded by the time we do dotenv.config
|
|
|
|
// so refresh the status of DEBUG env var
|
|
|
|
var debug = require("debug"); |
|
|
|
debug.enable(process.env.DEBUG); |
|
|
|
|
|
|
|
var express = require('express'); |
|
|
|
var favicon = require('serve-favicon'); |
|
|
|
var logger = require('morgan'); |
|
|
|