integr8ly / tutorial-web-app

Solution Explorer provides the front door into the Integreatly initiative. It hosts the various Solution Patterns, as well as providing a dashboard of installed applications/products/services.
Apache License 2.0
36 stars 54 forks source link

Close connections #481

Closed pb82 closed 5 years ago

pb82 commented 5 years ago

Motivation

Close the connection to the sqlite database and also stop the webserver before shutting down the webapp.

mfrances17 commented 5 years ago

Can you provide some quick steps or recommendations for testing that the connections are actually closed? I'd like to verify on my server.

pb82 commented 5 years ago

@mfrances17 sorry, i missed your comment. The best way to test this is actually to run the webapp locally using node server.js, then kill it with Ctrl+C: you should see the additional log output for shutting down. When using yarn those logs are suppressed.