mirror of
https://github.com/seejohnrun/haste-server.git
synced 2026-01-11 08:09:13 +00:00
19 lines
327 B
JavaScript
19 lines
327 B
JavaScript
|
|
var debug = require('../')('http')
|
|
, http = require('http')
|
|
, name = 'My App';
|
|
|
|
// fake app
|
|
|
|
debug('booting %s', name);
|
|
|
|
http.createServer(function(req, res){
|
|
debug(req.method + ' ' + req.url);
|
|
res.end('hello\n');
|
|
}).listen(3000, function(){
|
|
debug('listening');
|
|
});
|
|
|
|
// fake worker of some kind
|
|
|
|
require('./worker'); |