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

Function startServer

example/postgres/index.js:27–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27async function startServer () {
28 await client.connect()
29 console.log('db connected')
30
31 terminus(http.createServer(app), {
32 logger: console.log,
33 signal: 'SIGINT',
34 healthChecks: {
35 '/healthcheck': onHealthCheck
36 },
37
38 onSignal
39 }).listen(3000)
40}
41
42startServer()
43 .catch(err => console.error('connection error', err.stack))

Callers 1

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