Skip to content

Commit

Permalink
Add nrepl server to -main.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Nov 17, 2012
1 parent 60777a5 commit f46497d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion dev-resources/config.clj
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
:bcrypt-work-factor 12
:mail {:hostname "localhost"
:from "noreply@clojars.org"
:ssl false}}
:ssl false}
:nrepl-port 7991}
3 changes: 2 additions & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
:exclusions [org.openid4java/openid4java-nodeps]]
[clj-stacktrace "0.2.4"]
[ring-anti-forgery "0.2.0"]
[valip "0.2.0"]]
[valip "0.2.0"]
[org.clojure/tools.nrepl "0.2.0-RC1"]]
:profiles {:test {:resource-paths ["test-resources"]
:dependencies [[kerodon "0.0.7"]
[nailgun-shim "0.0.1"]]}
Expand Down
7 changes: 5 additions & 2 deletions src/clojars/main.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
[ring.adapter.jetty :refer [run-jetty]]
[clojars.web :refer [clojars-app]]
[clojars.promote :as promote]
[clojars.config :refer [config configure]])
[clojars.config :refer [config configure]]
[clojure.tools.nrepl.server :as nrepl])
(:import com.martiansoftware.nailgun.NGServer
java.net.InetAddress)
(:gen-class))
Expand All @@ -24,6 +25,8 @@
(configure args)
(promote/start)
(start-jetty)
(start-nailgun))
(start-nailgun)
(when-let [port (config :nrepl-port)]
(nrepl/start-server :port port)))

; (defonce server (run-jetty #'clojars-app {:port 8080 :join? false}))

0 comments on commit f46497d

Please sign in to comment.