From 79735cc0ba7277ea352f9570c7adc0f4a71f5a0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Madeleine=20Sydney=20=C5=9Alaga?= Date: Mon, 23 Mar 2026 08:48:26 -0600 Subject: [PATCH] =?UTF-8?q?fix:=20config=EC=97=90=EC=84=9C=20=ED=8F=AC?= =?UTF-8?q?=ED=8A=B8=EB=A5=BC=20=EC=9D=BD=EC=9D=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publisher/resources/net/deertopia/publisher/default-config.edn | 3 ++- publisher/src/net/deertopia/publisher/server.clj | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/publisher/resources/net/deertopia/publisher/default-config.edn b/publisher/resources/net/deertopia/publisher/default-config.edn index d467e9c..52b0b3a 100644 --- a/publisher/resources/net/deertopia/publisher/default-config.edn +++ b/publisher/resources/net/deertopia/publisher/default-config.edn @@ -2,4 +2,5 @@ {:state-directory #join [#or [#env XDG_STATE_HOME #envf ["%s/.local/share" HOME]] "/doerg-publisher"] - :org-roam-db-path #join [#env HOME "/.cache/emacs/org-roam.db"]} + :org-roam-db-path #join [#env HOME "/.cache/emacs/org-roam.db"] + :port 8080} diff --git a/publisher/src/net/deertopia/publisher/server.clj b/publisher/src/net/deertopia/publisher/server.clj index 20c600d..78330d2 100644 --- a/publisher/src/net/deertopia/publisher/server.clj +++ b/publisher/src/net/deertopia/publisher/server.clj @@ -3,6 +3,7 @@ [clojure.tools.logging :as l] [hiccup2.core :as hiccup] [net.deertopia.doerg.html :as doerg-html] + [net.deertopia.publisher :as-alias publisher] [net.deertopia.publisher.slug :as slug] [net.deertopia.publisher.config :as cfg] [net.deertopia.publisher.roam :as roam] @@ -101,7 +102,7 @@ (throw (ex-info msg {}))) (do (reset! server (http/run-server (bound-fn* #'app) - {:port 8080 + {:port (-> cfg/*cfg* ::publisher/port) :legacy-return-value? false})) ;; For some reason, the log messages are not flushed before ;; the JVM shuts dowm. Nevertheless, the server /does/ come