Sesame-Server/Sources/Run/main.swift

14 lines
215 B
Swift
Raw Normal View History

2022-01-23 20:49:06 +01:00
import App
import Vapor
2023-02-17 00:09:51 +01:00
var env = Environment.production //.detect()
2022-01-23 20:49:06 +01:00
try LoggingSystem.bootstrap(from: &env)
let app = Application(env)
2023-11-27 18:17:00 +01:00
defer {
shutdown()
2023-12-06 09:05:41 +01:00
app.shutdown()
2023-11-27 18:17:00 +01:00
}
2023-02-17 00:09:51 +01:00
2023-11-08 10:24:50 +01:00
try configure(app)
2022-01-23 20:49:06 +01:00
try app.run()