Lots of modern tools and environments are going to expect the process to be able to gracefully and quickly terminate upon receiving a "SIGTERM" command, otherwise, they'll forcefully kill it, which can result in bad stuff like stale database connections. Currently, the express server will just keep running... forever. We should fix that by implementing some logic to gracefully shut down.
Lots of modern tools and environments are going to expect the process to be able to gracefully and quickly terminate upon receiving a "SIGTERM" command, otherwise, they'll forcefully kill it, which can result in bad stuff like stale database connections. Currently, the express server will just keep running... forever. We should fix that by implementing some logic to gracefully shut down.