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(
  app.config.port,
  () => winston.warn(`server starting on port ${app.config.port} in ${app.settings.env} mode`))

@@ -1,12 +1,32 @@
+#!/usr/bin/env node%0A
 import winst

add the #! to make the node script executable