UNPKG

440 BJavaScriptView Raw
1#!/usr/bin/env node
2var express = require('express');
3var path = require('path');
4var serveIndex = require('serve-index');
5var app = express();
6// var dir = path.join(__dirname, '/../web');
7app.use('/', express.static("./web"));
8// app.use('/', express.static(dir));
9app.use('/', serveIndex(dir, {'icons': true}));
10
11app.listen(3000);
12
13console.log('Server started: http://localhost:3000/');
14console.log('__dirname=', __dirname);
\No newline at end of file