//var http = require('http');
var express = require('express');

var app = module.exports = express.createServer();

/*http.createServer(function (req, res) {
    res.writeHead(200, {'Content-Type': 'text/plain; charset=utf-8'});
    res.end('Can i haz app.js host another one or probably?');
}).listen(4080);*/

app.get('/', function(req,res){
    res.send('Hello from express');
});

app.listen(4000);
console.log('Server running at http://*:4080/');

//var http = require('http');
var express = require('express');

var app = module.exports = express();

/*http.createServer(function (req, res) {
    res.writeHead(200, {'Content-Type': 'text/plain; charset=utf-8'});
    res.end('Can i haz app.js host another one or probably?');
}).listen(4080);*/

app.get('/', function(req,res){
    res.send('Hello from express');
});

app.listen(4000);
console.log('Server running at http://*:4080/');

Fix issue with old express usage
Fix issue with old express usage
