From 9f311a49e45ae2999e2cf510cd16a8abb6a738bf Mon Sep 17 00:00:00 2001 From: donal <donalspring@gmail.com> Date: Thu, 26 Apr 2018 00:33:49 +0200 Subject: [PATCH] FIX - express running in test mode --- server/config/express.js | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/config/express.js b/server/config/express.js index 3fd56d9..c16ca51 100755 --- a/server/config/express.js +++ b/server/config/express.js @@ -25,9 +25,9 @@ app.use(bodyParser.json()); app.use(methodOverride()); app.use(cookieParser()); - if ('production' === env || 'si' === env || 'ci' === env) { - app.use(express.static(path.join(config.root, 'public'))); - app.set('appPath', path.join(config.root, 'public')); + if ('production' === env || 'dev' === env || 'test' === env) { + // app.use(express.static(path.join(config.root, 'public'))); + // app.set('appPath', path.join(config.root, 'public')); app.use(morgan('dev')); } -- Gitblit v1.9.3