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",