Detect environment
This commit is contained in:
parent
7968f64581
commit
c9d13bb150
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user