rename dev app

neo4j-4
Josha von Gizycki 5 years ago
parent 4e1ae1c5bc
commit 66e3401024

@ -51,7 +51,7 @@
(spec/check-asserts true) (spec/check-asserts true)
(handler req))) (handler req)))
(def app (def dev-app
(-> app-routes (-> app-routes
wrap-spec-asserts wrap-spec-asserts
devmode/wrap-devmode devmode/wrap-devmode

@ -6,10 +6,10 @@
(defonce server (atom nil)) (defonce server (atom nil))
(defn start-server! (defn start-server!
[& {:keys [port [& {:keys [port join? handler]
join?]
:or {port 3080 :or {port 3080
join? true}}] join? true
handler wanijo-handler/standalone-app}}]
(reset! server (reset! server
(run-jetty wanijo-handler/standalone-app (run-jetty wanijo-handler/standalone-app
{:port port {:port port
@ -17,7 +17,8 @@
(defn start-server-dev! [] (defn start-server-dev! []
(start-server! :join? false (start-server! :join? false
:port 8080)) :port 8080
:handler wanijo-handler/dev-app))
(defn stop-server [] (defn stop-server []
(.stop @server)) (.stop @server))

Loading…
Cancel
Save