mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 04:43:12 +03:00
adding when/monitor/console
This commit is contained in:
parent
00bf88472a
commit
ccd7b211f2
@ -20,6 +20,12 @@ var express = require('express'),
|
|||||||
server = express(),
|
server = express(),
|
||||||
ghost = new Ghost();
|
ghost = new Ghost();
|
||||||
|
|
||||||
|
// If we're in development mode, require "when/console/monitor"
|
||||||
|
// for help in seeing swallowed promise errors.
|
||||||
|
if (process.env.NODE_ENV === 'development') {
|
||||||
|
require('when/monitor/console');
|
||||||
|
}
|
||||||
|
|
||||||
// ##Custom Middleware
|
// ##Custom Middleware
|
||||||
|
|
||||||
// ### Auth Middleware
|
// ### Auth Middleware
|
||||||
|
Loading…
Reference in New Issue
Block a user