MCPcopy
hub / github.com/godaddy/terminus / startServer

Function startServer

example/mongoose/koa.js:35–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35async function startServer () {
36 // NOTICE app.callback()
37 terminus(http.createServer(app.callback()), {
38 logger: console.log,
39 signal: 'SIGINT',
40 healthChecks: {
41 '/healthcheck': onHealthCheck
42 },
43 onSignal
44 }).listen(3001)
45}
46
47startServer()
48 .catch(err => console.error('connection error', err.stack))

Callers 1

koa.jsFile · 0.70

Calls 1

terminusFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…