MCPcopy Index your code
hub / github.com/github/docs / main

Function main

start-server.js:13–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11const port = Number(PORT) || 4000
12
13export async function main() {
14 if (NODE_ENV !== 'production') {
15 await checkPortAvailability()
16 }
17
18 return await startServer()
19}
20
21async function checkPortAvailability() {
22 // Check that the development server is not already running

Callers 1

server.jsFile · 0.90

Calls 2

checkPortAvailabilityFunction · 0.85
startServerFunction · 0.85

Tested by

no test coverage detected