-
-
Save luxbock/5d7d2a098fd96862f7955faf9b554dec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defproject foo "0.1.0-SNAPSHOT" | |
:dependencies [[org.clojure/tools.nrepl "0.2.12"] | |
[cider/cider-nrepl "0.14.0"]] | |
:profiles {:uberjar {:main foo.repl | |
:aot [foo.repl]}}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns foo.repl | |
(:require [clojure.tools.nrepl.server :as nrepl-server] | |
[cider.nrepl :refer [cider-nrepl-handler]])) | |
(defn start-repl | |
[] | |
(println "Starting a REPL server...") | |
(nrepl-server/start-server :bind "0.0.0.0" | |
:port 7888 | |
:handler cider-nrepl-handler)) | |
(defn -main [& args] | |
(start-repl)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment