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