text: /* eslint-disable no-console */
  const logger = require("./logger");
  const app = require("./app");
  const seed = require(`./seed_${process.env.NODE_ENV}`);
  const port = app.get("port");
  const server = app.listen(port);
  
  process.on("unhandledRejection", (reason, p) => {
    logger.error("Unhandled Rejection at: Promise ", p, reason);
  });
  
  server.on("listening", () => {
    logger.info("Feathers application started on http://%s:%d", app.get("host"), port);
  });
  
  app.configure(seed);
  