Log server start
This commit is contained in:
@ -4,7 +4,10 @@ import Vapor
|
||||
var env = Environment.production //.detect()
|
||||
try LoggingSystem.bootstrap(from: &env)
|
||||
let app = Application(env)
|
||||
defer { app.shutdown() }
|
||||
defer {
|
||||
app.shutdown()
|
||||
shutdown()
|
||||
}
|
||||
|
||||
try configure(app)
|
||||
try app.run()
|
||||
|
Reference in New Issue
Block a user