Add log message for starting server
This commit is contained in:
parent
dbd6222251
commit
6754e05001
1 changed files with 7 additions and 5 deletions
|
@ -36,8 +36,10 @@
|
||||||
(handler/site routes))))
|
(handler/site routes))))
|
||||||
|
|
||||||
(defn -main [& args]
|
(defn -main [& args]
|
||||||
(db/connect-and-handle-events)
|
(let [port 3000]
|
||||||
(defonce stop-server (httpkit/run-server app {:port 3000}))
|
(println (str "Starting server on localhost:" port))
|
||||||
(when (some #(= % "integration") args)
|
(db/connect-and-handle-events)
|
||||||
(integration-test/run)
|
(defonce stop-server (httpkit/run-server app {:port port}))
|
||||||
(stop-server)))
|
(when (some #(= % "integration") args)
|
||||||
|
(integration-test/run)
|
||||||
|
(stop-server))))
|
||||||
|
|
Loading…
Reference in a new issue