NodeChat

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 37f8a1e9ef8a4500eb9489249f80f747fd54701e
parent 78c6ffc54026af27184dad53d1076af2495b11b8
Author: Guillermo Rauch <rauchg@gmail.com>
Date:   Sun, 26 Oct 2014 21:09:43 -0700

make runnable from anywhere

Diffstat:
Mindex.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.js b/index.js @@ -3,7 +3,7 @@ var http = require('http').Server(app); var io = require('socket.io')(http); app.get('/', function(req, res){ - res.sendfile('index.html'); + res.sendfile(__dirname + '/index.html'); }); io.on('connection', function(socket){