Sesame-Server/Sources/Run/main.swift

11 lines
196 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)
defer { app.shutdown() }
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()