Make uberjar nrepl emacs friendly
* replace luminus nrepl with cider nrepl + minor cleanup
This commit is contained in:
parent
211cc96c90
commit
6e108a088d
|
@ -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
|
||||
|
|
|
@ -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 []
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue