Update to swift 6
This commit is contained in:
@@ -1,9 +1,18 @@
|
||||
import App
|
||||
import Vapor
|
||||
import Logging
|
||||
|
||||
var env = try Environment.detect()
|
||||
try LoggingSystem.bootstrap(from: &env)
|
||||
let app = Application(env)
|
||||
defer { app.shutdown() }
|
||||
try configure(app)
|
||||
try app.run()
|
||||
let app = try await Application.make(env)
|
||||
|
||||
do {
|
||||
try configure(app)
|
||||
try await app.execute()
|
||||
} catch {
|
||||
app.logger.report(error: error)
|
||||
try? await app.asyncShutdown()
|
||||
throw error
|
||||
}
|
||||
|
||||
try await app.asyncShutdown()
|
||||
|
||||
Reference in New Issue
Block a user