From 9ced26deacfafd5a0991d7983083a6df37970fcb Mon Sep 17 00:00:00 2001 From: Dennis Hernandez Date: Sat, 11 Sep 2021 12:22:46 -0700 Subject: [PATCH] ? --- Sources/ApusRubus/Vapor/VaporController.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Sources/ApusRubus/Vapor/VaporController.swift b/Sources/ApusRubus/Vapor/VaporController.swift index 9f4f86b..384cced 100644 --- a/Sources/ApusRubus/Vapor/VaporController.swift +++ b/Sources/ApusRubus/Vapor/VaporController.swift @@ -28,7 +28,14 @@ public class VaporController { // register routes try routes(app!) print(app!.routes.all) - try app!.run() + + + + _ = try app(.detect()).asyncRun() + RunLoop.main.run() + + +// try app!.run() } catch { env = nil app = nil