Open Purus opened 6 years ago
// import express middlewares that are present in /components/express_middleware var normalizedPath = require("path").join(__dirname, "express_middleware"); require("fs").readdirSync(normalizedPath).forEach(function(file) { require("./express_middleware/" + file)(webserver, controller); });
express_middleware is not present in components folder.
When you have pushed the code to Github, the empty express_middleware folder is not pushed as it might have been empty. So this is causing the issue. Adding an empty express_middleware will work.
express_middleware is not present in components folder.