#!/usr/bin/env node
import winston from 'winston'
import { makeHttpServer } from './server/http.js'
import { getConfig } from './server/config.js'

const conf = getConfig()

const app = makeHttpServer(conf)

app.listen(conf.port,
           () => winston.warn(`Listening on port ${conf.port} in ${app.settings.env} mode`))

@@ -176,12 +176,16 @@
 onst
+ %7B
  app
+ %7D
  = m

fix return type for instantiating an http server