MCPcopy
hub / github.com/ampproject/amphtml / stopServer

Function stopServer

build-system/tasks/serve.js:170–176  ·  view source on GitHub ↗

* Stops the currently running server * @return {Promise }

()

Source from the content-addressed store, hash-verified

168 * @return {Promise<void>}
169 */
170async function stopServer() {
171 if (url) {
172 connect.serverClose();
173 log(green('Stopped server at'), cyan(url));
174 url = null;
175 }
176}
177
178/**
179 * Closes the existing server and restarts it

Callers 4

restartServerFunction · 0.85
performVisualTestsFunction · 0.85
runTests_Function · 0.85
teardownMethod · 0.85

Calls 3

greenFunction · 0.85
cyanFunction · 0.85
logFunction · 0.50

Tested by

no test coverage detected