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

Function startServer

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

Source from the content-addressed store, hash-verified

38}
39
40async function startServer () {
41 // get oracle connection
42 await dbConnect()
43 console.log('Oracle database connection established')
44
45 terminus.createTerminus(http.createServer(app), {
46 logger: console.log,
47 signal: 'SIGINT',
48 healthChecks: {
49 '/healthcheck': onHealthCheck
50 },
51
52 onSignal
53 }).listen(3000)
54}
55
56startServer()
57 .catch(err => console.error('connection error', err.stack))

Callers 1

index.jsFile · 0.70

Calls 1

dbConnectFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…