fix: config에서 포트를 읽음 #24
@@ -2,4 +2,5 @@
|
|||||||
{:state-directory #join [#or [#env XDG_STATE_HOME
|
{:state-directory #join [#or [#env XDG_STATE_HOME
|
||||||
#envf ["%s/.local/share" HOME]]
|
#envf ["%s/.local/share" HOME]]
|
||||||
"/doerg-publisher"]
|
"/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}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
[clojure.tools.logging :as l]
|
[clojure.tools.logging :as l]
|
||||||
[hiccup2.core :as hiccup]
|
[hiccup2.core :as hiccup]
|
||||||
[net.deertopia.doerg.html :as doerg-html]
|
[net.deertopia.doerg.html :as doerg-html]
|
||||||
|
[net.deertopia.publisher :as-alias publisher]
|
||||||
[net.deertopia.publisher.slug :as slug]
|
[net.deertopia.publisher.slug :as slug]
|
||||||
[net.deertopia.publisher.config :as cfg]
|
[net.deertopia.publisher.config :as cfg]
|
||||||
[net.deertopia.publisher.roam :as roam]
|
[net.deertopia.publisher.roam :as roam]
|
||||||
@@ -101,7 +102,7 @@
|
|||||||
(throw (ex-info msg {})))
|
(throw (ex-info msg {})))
|
||||||
(do (reset! server
|
(do (reset! server
|
||||||
(http/run-server (bound-fn* #'app)
|
(http/run-server (bound-fn* #'app)
|
||||||
{:port 8080
|
{:port (-> cfg/*cfg* ::publisher/port)
|
||||||
:legacy-return-value? false}))
|
:legacy-return-value? false}))
|
||||||
;; For some reason, the log messages are not flushed before
|
;; For some reason, the log messages are not flushed before
|
||||||
;; the JVM shuts dowm. Nevertheless, the server /does/ come
|
;; the JVM shuts dowm. Nevertheless, the server /does/ come
|
||||||
|
|||||||
Reference in New Issue
Block a user