Permalink
Browse files

Add nrepl server to -main.

  • Loading branch information...
1 parent 60777a5 commit f46497d141770e219deb93025b64e37de5837c96 @technomancy technomancy committed Nov 17, 2012
Showing with 9 additions and 4 deletions.
  1. +2 −1 dev-resources/config.clj
  2. +2 −1 project.clj
  3. +5 −2 src/clojars/main.clj
View
@@ -9,4 +9,5 @@
:bcrypt-work-factor 12
:mail {:hostname "localhost"
:from "noreply@clojars.org"
- :ssl false}}
+ :ssl false}
+ :nrepl-port 7991}
View
@@ -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"]]}
View
@@ -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))
@@ -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.