UNPKG

spinner

Version:

Spawns child processes and allocates `process.env.PORT` for each.

9 lines (8 loc) 270 B
console.log('starting a'); var http = require('http'); http.createServer(function(req, res) { res.end('AAAAAAAAAAAAAAAA'); }).listen(process.env.PORT, function(err) { if (err) return console.error(err); return console.info('started on port ' + process.env.PORT); });