|
|
@ -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))
|
|
|
|