From c9d13bb15035b8e39d3d39c9c7db5784964aee9a Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Tue, 19 Dec 2023 21:43:58 +0100 Subject: [PATCH] Detect environment --- Sources/App/entrypoint.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/App/entrypoint.swift b/Sources/App/entrypoint.swift index 804c54e..2cf05a5 100644 --- a/Sources/App/entrypoint.swift +++ b/Sources/App/entrypoint.swift @@ -23,7 +23,7 @@ private extension Vapor.Application { @main enum Entrypoint { static func main() async throws { - var env = Environment.production + var env = try Environment.detect() try LoggingSystem.bootstrap(from: &env) let app = Application(env)