From d25d592bef42f67b5f089f9a1ed92a771b0fc786 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Fri, 14 Aug 2020 22:16:53 +0200 Subject: [PATCH] Set default environment to production --- index.js | 1 + package.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index e92b884..ba24d49 100644 --- a/index.js +++ b/index.js @@ -39,6 +39,7 @@ md.use(require("markdown-it-anchor")); md.use(require("markdown-it-table-of-contents"), { "includeLevel": [2, 3], "listType": "ol" }); md.use(require('markdown-it-title')); +app.set('env', process.env.NODE_ENV || "production"); app.set('view engine', 'pug'); app.set('port', process.env.PORT || 3000); app.set('domain', process.env.DOMAIN || "keyoxide.org"); diff --git a/package.json b/package.json index 54eb2cf..b0708f1 100644 --- a/package.json +++ b/package.json @@ -20,8 +20,8 @@ "license-check-and-add": "^3.0.4" }, "scripts": { - "start": "NODE_ENV=production node index.js", - "dev": "node index.js", + "start": "node index.js", + "dev": "NODE_ENV=development node index.js", "license:check": "./node_modules/license-check-and-add/dist/src/cli.js check", "license:add": "./node_modules/license-check-and-add/dist/src/cli.js add", "license:remove": "./node_modules/license-check-and-add/dist/src/cli.js remove",