From 2245167cf302d6306e1e1ba363d7a3b45bdd03c8 Mon Sep 17 00:00:00 2001 From: Sam Nicholls Date: Sat, 12 Jan 2013 13:01:43 +0000 Subject: [PATCH] Added patching info for Express --- modules/web/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/modules/web/README.md b/modules/web/README.md index 86ebc10..c00af25 100644 --- a/modules/web/README.md +++ b/modules/web/README.md @@ -7,6 +7,23 @@ Web interface It's a web interface for DBot. What of it? ## Requirements +###Express and Jade@0.25 +``` +npm install express +npm install jade@0.25 +``` +###Express Patch +Express currently needs to be patched, edit ~/node_modules/express/lib/express.js as thus; +``` + 52 for (var key in connect.middleware) { +**53 if( !Object.prototype.hasOwnProperty(key) ) { + 54 Object.defineProperty( + 55 exports + 56 , key + 57 , Object.getOwnPropertyDescriptor(connect.middleware, key)); +**58 } + 59 } +``` ###Twitter Bootstrap ``` cd depressionbot/public/