diff --git a/sessions/Dockerfile b/sessions/Dockerfile index c3bdfc9c..c4279518 100644 --- a/sessions/Dockerfile +++ b/sessions/Dockerfile @@ -83,4 +83,4 @@ EXPOSE 8080 # Start the Hummingbird service when the image is run, default to listening on 8080 in production environment ENTRYPOINT ["./App"] -CMD ["--hostname", "0.0.0.0", "--port", "8080"] +CMD ["--hostname", "0.0.0.0", "--port", "8080", "--in-memory-database"] diff --git a/sessions/Sources/App/Application+build.swift b/sessions/Sources/App/Application+build.swift index e721f047..9c6a61be 100644 --- a/sessions/Sources/App/Application+build.swift +++ b/sessions/Sources/App/Application+build.swift @@ -52,7 +52,11 @@ func buildApplication(_ arguments: AppArguments, configuration: ApplicationConfi let userController = UserController(fluent: fluent, sessionStorage: sessionStorage) userController.addRoutes(to: router.group("user")) - var application = Application(router: router, server: .http1()) + var application = Application( + router: router, + server: .http1(), + configuration: configuration + ) application.addServices(fluent, persist) return application } diff --git a/sessions/session-persist-async-test.paw b/sessions/session-persist-async-test.paw index 217833de..e184b9ef 100644 Binary files a/sessions/session-persist-async-test.paw and b/sessions/session-persist-async-test.paw differ diff --git a/webauthn/Sources/App/Application+build.swift b/webauthn/Sources/App/Application+build.swift index 9650ef3d..52b2ce88 100644 --- a/webauthn/Sources/App/Application+build.swift +++ b/webauthn/Sources/App/Application+build.swift @@ -53,7 +53,7 @@ func buildApplication(_ arguments: AppArguments) async throws -> some Applicatio let sessionStorage = SessionStorage(memoryPersist) // load mustache template library - let library = try await MustacheLibrary(directory: "templates") + let library = try await MustacheLibrary(directory: "resources/templates") assert(library.getTemplate(named: "home") != nil, "Set your working directory to the root folder of this example to get it to work") let router = RouterBuilder(context: WebAuthnRequestContext.self) { diff --git a/webauthn/templates/home.mustache b/webauthn/resources/templates/home.mustache similarity index 100% rename from webauthn/templates/home.mustache rename to webauthn/resources/templates/home.mustache