Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added a main function to be able to start the server with `lein run`.

  • Loading branch information...
commit 4644aeb1cce09e933784d3802d3fdab8779df943 1 parent cb34529
@budu authored
Showing with 4 additions and 2 deletions.
  1. +2 −1  project.clj
  2. +2 −1  src/clj/board/core.clj
View
3  project.clj
@@ -12,4 +12,5 @@
[{:source-path "src/cljs"
:compiler {:output-to "resources/public/js/app.js"
:optimizations :advanced}}]}
- :ring {:handler board.core/app})
+ :ring {:handler board.core/app}
+ :main board.core)
View
3  src/clj/board/core.clj
@@ -32,4 +32,5 @@
(board-handler channel)
(enqueue channel (wrapped-sync-app request))))
-(start-http-server app {:port 8080 :websocket true})
+(defn -main [& args]
+ (start-http-server app {:port 8080 :websocket true}))
Please sign in to comment.
Something went wrong with that request. Please try again.