
const express = require('express')

exports.launchStaticServer = function launchStaticServer (staticPath, port = 3000) {
  const app = express();
  app.get('/', (req, res) => res.send('Small App Static Server'));
  app.use(express.static(staticPath));
  app.listen(port, () => {
      // console.log('真机调试服务正在运行，可以用手机扫码调试构建出来的安装包啦')
  });

  return Promise.resolve()
}