Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Support building a packaged jar with leiningen.

  • Loading branch information...
commit 1774a041273c51860bf69b4e853c139291ceb240 1 parent 45854e4
@lukeredpath lukeredpath authored
Showing with 5 additions and 2 deletions.
  1. +1 −1  README.md
  2. +1 −0  project.clj
  3. +3 −1 src/eventframework/web.clj
View
2  README.md
@@ -2,4 +2,4 @@
A very basic chat client built as a demonstration of one way to do asynchronous messaging using Clojure, Compojure, and Aleph. This was built in large part as an exercise for me to learn how to use these tools plus Heroku.
-
+A standalone jar with all dependencies included can be produced with `lein uberjar`.
View
1  project.clj
@@ -11,6 +11,7 @@
:min-lein-version "2.0.0"
:plugins [[environ/environ.lein "0.2.1"]]
:hooks [environ.leiningen.hooks]
+ :main eventframework.web
:profiles {
:dev {:dependencies [[ring-mock "0.1.3"]]
:plugins [[lein-midje "2.0.2"]]}})
View
4 src/eventframework/web.clj
@@ -3,7 +3,9 @@
[aleph http]
clojure.tools.logging
[clj-logging-config.log4j :as log-config]
- ))
+ )
+ (:gen-class))
+
(defn -main [port]
(log-config/set-logger! :out *err*)
Please sign in to comment.
Something went wrong with that request. Please try again.