diff --git a/project.clj b/project.clj index 7be0fc3..650b53c 100644 --- a/project.clj +++ b/project.clj @@ -60,7 +60,6 @@ [lein-auto "0.1.2"] [lein-less "1.7.5"]] - :user {:plugins [[cider/cider-nrepl "0.15.0-SNAPSHOT"]]} :less {:source-paths ["src/less"] :target-path "resources/public/css"} @@ -78,7 +77,9 @@ :profiles - {:uberjar {:omit-source true + {:uberjar {:dependencies [[org.clojure/tools.nrepl "0.2.12"]] + :plugins [[cider/cider-nrepl "0.15.0-SNAPSHOT"]] + :omit-source true :prep-tasks ["compile" ["cljsbuild" "once" "min"]] :cljsbuild {:builds diff --git a/src/clj/commiteth/core.clj b/src/clj/commiteth/core.clj index da9f353..fac85a5 100644 --- a/src/clj/commiteth/core.clj +++ b/src/clj/commiteth/core.clj @@ -1,6 +1,7 @@ (ns commiteth.core (:require [commiteth.handler :as handler] - [luminus.repl-server :as repl] + [clojure.tools.nrepl.server :as nrepl-server] + [cider.nrepl :refer [cider-nrepl-handler]] [luminus.http-server :as http] [luminus-migrations.core :as migrations] [commiteth.config :refer [env]] @@ -28,10 +29,12 @@ http-server repl-server :start (when-let [nrepl-port (env :nrepl-port)] - (repl/start {:port nrepl-port})) + (log/info "Starting NREPL server on port" nrepl-port) + (nrepl-server/start-server :port nrepl-port + :handler cider-nrepl-handler)) :stop (when repl-server - (repl/stop repl-server))) + (nrepl-server/stop-server repl-server))) (defn stop-app [] diff --git a/src/clj/commiteth/github/core.clj b/src/clj/commiteth/github/core.clj index 1d6e9a3..a46faca 100644 --- a/src/clj/commiteth/github/core.clj +++ b/src/clj/commiteth/github/core.clj @@ -96,7 +96,6 @@ (defn add-webhook [full-repo token secret] (log/debug "adding webhook" full-repo token) - ; TODO: use secret key in config param (let [[user repo] (str/split full-repo #"/")] (repos/create-hook user repo "web" {:url (str (server-address) "/webhook")