14 lines
215 B
Swift
14 lines
215 B
Swift
import App
|
|
import Vapor
|
|
|
|
var env = Environment.production //.detect()
|
|
try LoggingSystem.bootstrap(from: &env)
|
|
let app = Application(env)
|
|
defer {
|
|
shutdown()
|
|
app.shutdown()
|
|
}
|
|
|
|
try configure(app)
|
|
try app.run()
|