start.js 341 B

123456
  1. const config = require('../config');
  2. const server = require('../server/hotServer');
  3. const debug = require('debug')('app:bin:start');
  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}`);