Caps-Server/Sources/Run/main.swift

10 lines
183 B
Swift
Raw Normal View History

import App
import Vapor
2023-02-06 21:31:12 +01:00
var env = Environment.production
2020-09-20 11:36:35 +02:00
try LoggingSystem.bootstrap(from: &env)
let app = Application(env)
defer { app.shutdown() }
2023-11-22 10:02:16 +01:00
try configure(app)
2020-09-20 11:36:35 +02:00
try app.run()