Detect environment
This commit is contained in:
parent
7968f64581
commit
c9d13bb150
@ -23,7 +23,7 @@ private extension Vapor.Application {
|
|||||||
@main
|
@main
|
||||||
enum Entrypoint {
|
enum Entrypoint {
|
||||||
static func main() async throws {
|
static func main() async throws {
|
||||||
var env = Environment.production
|
var env = try Environment.detect()
|
||||||
try LoggingSystem.bootstrap(from: &env)
|
try LoggingSystem.bootstrap(from: &env)
|
||||||
|
|
||||||
let app = Application(env)
|
let app = Application(env)
|
||||||
|
Loading…
Reference in New Issue
Block a user