Permalink
Browse files

added express to server.js

  • Loading branch information...
chrismatthieu committed Dec 14, 2011
1 parent 15d1cf6 commit 456c6675474fa90779090da6c9814b4ece225cb7
Showing with 4 additions and 5 deletions.
  1. +4 −5 server.js
View
@@ -1,5 +1,4 @@
-var http = require('http');
-http.createServer(function (req, res) {
- res.writeHead(200, {'Content-Type': 'text/plain'});
- res.end('Hello World\nApp (newdesign) is running..');
-}).listen(12952);
+var express = require("express"),
+ app = express.createServer();
+app.use(express.static(__dirname));
+app.listen(12952);

0 comments on commit 456c667

Please sign in to comment.