Detect environment

This commit is contained in:
Christoph Hagen 2023-12-19 21:43:58 +01:00
parent 7968f64581
commit c9d13bb150

View File

@ -23,7 +23,7 @@ private extension Vapor.Application {
@main @main
enum Entrypoint { enum Entrypoint {
static func main() async throws { static func main() async throws {
var env = Environment.production var env = try Environment.detect()
try LoggingSystem.bootstrap(from: &env) try LoggingSystem.bootstrap(from: &env)
let app = Application(env) let app = Application(env)