forked from Mirrors/keyoxide-web
Set default environment to production
This commit is contained in:
parent
47b120f316
commit
d25d592bef
2 changed files with 3 additions and 2 deletions
1
index.js
1
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-table-of-contents"), { "includeLevel": [2, 3], "listType": "ol" });
|
||||||
md.use(require('markdown-it-title'));
|
md.use(require('markdown-it-title'));
|
||||||
|
|
||||||
|
app.set('env', process.env.NODE_ENV || "production");
|
||||||
app.set('view engine', 'pug');
|
app.set('view engine', 'pug');
|
||||||
app.set('port', process.env.PORT || 3000);
|
app.set('port', process.env.PORT || 3000);
|
||||||
app.set('domain', process.env.DOMAIN || "keyoxide.org");
|
app.set('domain', process.env.DOMAIN || "keyoxide.org");
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
"license-check-and-add": "^3.0.4"
|
"license-check-and-add": "^3.0.4"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "NODE_ENV=production node index.js",
|
"start": "node index.js",
|
||||||
"dev": "node index.js",
|
"dev": "NODE_ENV=development node index.js",
|
||||||
"license:check": "./node_modules/license-check-and-add/dist/src/cli.js check",
|
"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: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",
|
"license:remove": "./node_modules/license-check-and-add/dist/src/cli.js remove",
|
||||||
|
|
Loading…
Reference in a new issue