How to use the hops-express.startServer function in hops-express

To help you get started, we’ve selected a few hops-express examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github xing / hops / packages / cli / index.js View on Github external
hopsBuild.runBuild(program, function (error) {
    if (error) {
      callback ? callback(error) : console.error(error.stack.toString());
    } else {
      hopsExpress.startServer(callback);
    }
  });
}
github xing / hops / packages / local-cli / commands / serve.js View on Github external
handler: function serveHandler (argv) {
      if (argv.production) {
        process.env.NODE_ENV = 'production';
      }
      process.env.HOPS_MODE = argv.static ? 'static' : 'dynamic';
      hopsExpress.startServer(callback);
    }
  };