Set default environment to production

This commit is contained in:
Yarmo Mackenbach 2020-08-14 22:16:53 +02:00
parent 47b120f316
commit d25d592bef
2 changed files with 3 additions and 2 deletions

View file

@ -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");

View file

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