Force express server to run in production mode

This commit is contained in:
Pavel Djundik 2018-10-14 00:23:32 +03:00
parent 010ddab78e
commit de028e5dd8

View File

@ -46,6 +46,7 @@ module.exports = function() {
}; };
const app = express() const app = express()
.set("env", "production")
.disable("x-powered-by") .disable("x-powered-by")
.use(allRequests) .use(allRequests)
.use(index) .use(index)