Update src/index.ts to call Container.destroy(...)

This commit is contained in:
Garrett Mills 2023-07-16 19:46:29 +00:00
parent 2209ff685f
commit 846461bac6

View File

@ -9,5 +9,7 @@ globalRegistry.run(async () => {
* ties your entire application together. The app container manages services
* and lifecycle.
*/
await app().run()
const theApp = app()
await theApp.run()
await theApp.destroy()
})