How to shut down the server #68
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When my application receives a SIGTERM or SIGINT signal (through a listener registered with
process.on()
), I want to shut down the HTTP server earlier than the rest of the app, so that no new requests are accepted while my application finishes processing data uploaded by previous requests. How do I shut down the Greenlock Express server?See these examples for how to get access to the node server objects:
Oh nice, thanks!