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

Function startServer

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

Source from the content-addressed store, hash-verified

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

Callers 1

express.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…