Attempt to fix startup
This commit is contained in:
parent
4253ae2589
commit
1927a35d37
@ -5,7 +5,11 @@ var env = try Environment.detect()
|
||||
try LoggingSystem.bootstrap(from: &env)
|
||||
let app = Application(env)
|
||||
defer { app.shutdown() }
|
||||
|
||||
private let semaphore = DispatchSemaphore(value: 1)
|
||||
Task {
|
||||
try await configure(app)
|
||||
try app.run()
|
||||
semaphore.signal()
|
||||
}
|
||||
semaphore.wait()
|
||||
try app.run()
|
||||
|
Loading…
Reference in New Issue
Block a user