From 49b4e9892299fb0be5a1e5b17452a5591d68b3f1 Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Thu, 23 Dec 2021 09:38:31 +0100 Subject: [PATCH] Set server port --- Sources/App/configure.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/App/configure.swift b/Sources/App/configure.swift index 4f35ac9..47656d6 100644 --- a/Sources/App/configure.swift +++ b/Sources/App/configure.swift @@ -7,6 +7,8 @@ var server: SQLiteDatabase! public func configure(_ app: Application) throws { let storageFolder = URL(fileURLWithPath: app.directory.resourcesDirectory) + app.http.server.configuration.port = 6002 + // Set target environment app.environment = .production