Skip to content

Commit

Permalink
Unify hostnames. #30
Browse files Browse the repository at this point in the history
  • Loading branch information
chr15m committed Feb 5, 2024
1 parent eff98d0 commit 86081fe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/sitefoxtest/e2etests.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@

;(def browser-type pw/chromium)

(def base-url "http://127.0.0.1:8000")
(def host "localhost")
(def base-url (str "http://" host ":8000"))

(def log (j/call-in js/console [:log :bind] js/console " ---> "))
(def log-listeners (atom #{}))

(j/assoc! env "BIND_ADDRESS" host)

(defn run-server [path server-command port]
; first run npm init in the folder
(log "Installing server deps.")
Expand All @@ -30,7 +33,7 @@
;:stdio "inherit"
:shell true
:detach true})
port-info (wait-for-port #js {:host "127.0.0.1" :port port})
port-info (wait-for-port #js {:host host :port port})
pid (j/get server :pid)]
(j/call-in server [:stdout :on] "data"
(fn [data]
Expand Down

0 comments on commit 86081fe

Please sign in to comment.