mirror of
https://github.com/ExactTarget/fuelux.git
synced 2026-01-09 22:47:54 -05:00
15 lines
388 B
JavaScript
15 lines
388 B
JavaScript
var util = require('util');
|
|
var connect = require('connect');
|
|
var serveStatic = require('serve-static');
|
|
var path = require('path');
|
|
|
|
var port = 9000;
|
|
var app = connect();
|
|
|
|
// parent folder
|
|
app.use(serveStatic(path.resolve(__dirname)));
|
|
|
|
// Listen
|
|
app.listen(process.env.PORT || port);
|
|
util.puts('Listening on ' + (process.env.PORT || port) + '...');
|
|
util.puts('Press Ctrl + C to stop.'); |