Skip to content

Instantly share code, notes, and snippets.

@luxbock
Last active February 2, 2017 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luxbock/5d7d2a098fd96862f7955faf9b554dec to your computer and use it in GitHub Desktop.
Save luxbock/5d7d2a098fd96862f7955faf9b554dec to your computer and use it in GitHub Desktop.
(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]}})
(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