Permalink
Browse files

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

  • Loading branch information...
1 parent cb34529 commit 4644aeb1cce09e933784d3802d3fdab8779df943 @budu committed Mar 31, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −1 project.clj
  2. +2 −1 src/clj/board/core.clj
View
@@ -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
@@ -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}))

0 comments on commit 4644aeb

Please sign in to comment.