Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 22 lines (17 sloc) 0.505 kb
#!/usr/bin/env node
var port = process.env.PORT || process.env.C9_PORT || 8080;
var server = require('http-server').createServer({
root: './public/',
ext: 'html'
});
server.listen(process.env.PORT || process.env.C9_PORT || 8080, function () {
console.log('Starting up http-server, serving '
+ server.root
+ ' on port: '
+ port);
console.log('Hit CTRL-C to stop the server');
});
process.on('SIGINT', function() {
console.log('http-server stopped.');
return process.exit();
});
Jump to Line
Something went wrong with that request. Please try again.