Skip to content

Commit ca9ec1e

Browse files
committed
pass in the port
1 parent eaed249 commit ca9ec1e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/firedamp/core.clj

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@
185185

186186
(defn -main
187187
[& args]
188-
(init-metrics!)
189-
(http/start-server app {:port 8080 :host "0.0.0.0"})
190-
(keep-checking (mt/minutes 2))
191-
(staying-alive))
188+
(let [port (Integer/parseInt (first args))]
189+
(init-metrics!)
190+
(http/start-server app {:port port :host "0.0.0.0"})
191+
(keep-checking (mt/minutes 2))
192+
(staying-alive)))

0 commit comments

Comments
 (0)