Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of github.com:creationix/node-topcloud-chat

  • Loading branch information...
commit 99eb41d5dbe3903d4790f0cbc20cd10ab10a1e21 2 parents fa39866 + 77df250
Tim Caswell authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 dinmaker.js
6 dinmaker.js
View
@@ -45,12 +45,12 @@ function send_message(req, res, username, message) {
// Serve js, css, and png files as static resources
server.get(/^(\/.+\.(?:jpg|js|css|png|ico|tci))$/, function (req, res, path) {
- server.staticHandler(req, res, "public" + path);
+ server.staticHandler(req, res, __dirname + "/public" + path);
});
// Render the login window
server.get(/^\/$/, function (req, res) {
- fs.readFile('interface.haml', function (err, text) {
+ fs.readFile(__dirname + '/interface.haml', function (err, text) {
res.simpleHtml(200, haml.render(text));
});
});
@@ -62,4 +62,4 @@ server.post(/^\/listen\/([^\/]*)$/, long_poll, 'json');
// Handle new messages
server.post(/^\/message\/([^\/]*)$/, send_message, 'plain');
-server.listen(9292);
+server.listen(7000);
Please sign in to comment.
Something went wrong with that request. Please try again.