Add log message for starting server

This commit is contained in:
Nicholas Kariniemi 2013-08-18 11:32:53 +03:00
parent dbd6222251
commit 6754e05001

View file

@ -36,8 +36,10 @@
(handler/site routes))))
(defn -main [& args]
(db/connect-and-handle-events)
(defonce stop-server (httpkit/run-server app {:port 3000}))
(when (some #(= % "integration") args)
(integration-test/run)
(stop-server)))
(let [port 3000]
(println (str "Starting server on localhost:" port))
(db/connect-and-handle-events)
(defonce stop-server (httpkit/run-server app {:port port}))
(when (some #(= % "integration") args)
(integration-test/run)
(stop-server))))