Skip to content
This repository
Browse code

add :repl-options :init into headless startup

  • Loading branch information...
commit d576345488ecd0124967ec8cfe916d2b34aded35 1 parent 5893c14
Tim King kingtim authored

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  src/leiningen/repl.clj
1  src/leiningen/repl.clj
@@ -58,6 +58,7 @@
58 58 :bind ~host :port ~port :ack-port ~ack-port
59 59 :handler ~(handler-for project))
60 60 port# (-> server# deref :ss .getLocalPort)]
  61 + (do ~(if headless? (-> project :repl-options :init)))
61 62 (println "nREPL server started on port" port#)
62 63 (spit ~(str (io/file (:target-path project) "repl-port")) port#)
63 64 (.deleteOnExit (io/file ~(:target-path project) "repl-port"))

0 comments on commit d576345

Please sign in to comment.
Something went wrong with that request. Please try again.