old_contents: const express = require('express')
      , path = require('path')
      , CONFIG = require('../config')
      , CONFIG_PATH = CONFIG.path
      , cookieParser = require('cookie-parser')
      , bodyParser = require('body-parser')
      , logger = require('morgan')
      , http = require('http')
      , broadcast = require('./broadcast')
  
  // var favicon = require('serve-favicon');
  
  let app = express();
  
  // uncomment after placing your favicon in /public
  //app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')));
  // app.use(logger('dev'));
  app.use(bodyParser.json());
  app.use(bodyParser.urlencoded({ extended: false }));
  app.use(cookieParser());
  
  app.use(
      express.static(CONFIG_PATH.dist)
  );
  
  // catch 404 and forward to error handler
  app.use(function(req, res, next) {
      var err = new Error('Not Found');
      err.status = 404;
      next(err);
  });
  
  // error handler
  app.use(function(err, req, res, next) {
      // set locals, only providing error in development
      res.locals.message = err.message;
      res.locals.error = req.app.get('env') === 'development' ? err : {};
  
      // render the error page
      res.status(err.status || 500);
      res.render('error');
  });
  
  let PORT = CONFIG.server.PORT || 4444; 
  let server = http.createServer(app);
  server.listen(PORT);
  
  console.log(`Listen On ${PORT}`)
  
  
new_contents: const express = require('express')
      , path = require('path')
      , CONFIG = require('../config')
      , CONFIG_PATH = CONFIG.path
      , cookieParser = require('cookie-parser')
      , bodyParser = require('body-parser')
      , logger = require('morgan')
      , http = require('http')
      , broadcast = require('./broadcast')
      , serve = require('serve')
  
  
  // static serve 
  
  let PORT = CONFIG.server.PORT || 4444; 
  
  serve(CONFIG_PATH.dist, {
      port: PORT
  })
  
  
  console.log(`Listen On ${PORT}`)
  
  
subject: use `serve` for static file server