static.js 345 B

123456
  1. const config = require('../config');
  2. const server = require('../server/staticServer');
  3. const debug = require('debug')('app:bin:static');
  4. server.listen(config.serverPort);
  5. debug(`Server is now running at http://${config.serverHost}:${config.serverPort}.`);
  6. require('child_process').exec(`start http://${config.serverHost}:${config.serverPort}`);