Files
ccn/Services/Website/Sources/App/App.swift
T

29 lines
697 B
Swift
Raw Normal View History

2026-06-27 02:26:33 +00:00
import Configuration
import Hummingbird
import Logging
@main
struct App {
static func main() async throws {
let reader = try await ConfigReader(
providers: [
CommandLineArgumentsProvider(),
EnvironmentVariablesProvider(),
EnvironmentVariablesProvider(
environmentFilePath: ".env",
allowMissing: true
),
InMemoryProvider(values: [
.HTTP.serverName: .HTTP.serverName
2026-06-27 02:26:33 +00:00
]),
]
)
let app = try await application(
reader: reader
)
try await app.runService()
}
}