dev: update cider-nrepl, fix set-system-env

This commit is contained in:
rcmerci
2025-04-15 22:45:28 +08:00
parent 27ebab1331
commit b2b726f2b4
2 changed files with 4 additions and 3 deletions

View File

@@ -24,7 +24,8 @@
(defn- set-system-env
"Updates capacitor.config.ts serve url with IP from ifconfig"
[]
(let [ip (string/trim (:out (shell {:out :string} "ipconfig getifaddr en0")))
(let [ip (string/trim (:out (or (shell {:out :string :continue true} "ipconfig getifaddr en0")
(shell {:out :string} "ipconfig getifaddr en1"))))
logseq-app-server-url (format "%s://%s:%s" "http" ip "3001")]
(println "Server URL:" logseq-app-server-url)
(shell "git checkout capacitor.config.ts")