MCPcopy Create free account
hub / github.com/azat-co/practicalnode / boot

Function boot

code/ch8/rest-hapi/index.js:99–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97}))
98
99const boot = () => {
100 server.start((err) => {
101 if (err) {
102 console.error(err)
103 return process.exit(1)
104 }
105 console.log(`Server running at: ${server.info.uri}`)
106 })
107}
108
109const shutdown = () => {
110 server.stop({}, () => {

Callers 2

index.jsFile · 0.70
index.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected