Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor improvements to sample.project.clj, closes #710

  • Loading branch information...
commit ecfbac67b2e11c97ce1dfedb4ef70683c4fe0b4d 1 parent f4cfb8b
@michaelklishin michaelklishin authored
Showing with 10 additions and 3 deletions.
  1. +10 −3 sample.project.clj
View
13 sample.project.clj
@@ -98,11 +98,18 @@
;; other Java interop functionality. Put a regex here to compile all
;; namespaces whose names match.
:aot [org.example.sample]
- ;; The -main function in this namespace will be run at launch if you
- ;; create an uberjar. Set :skip-aot metadata on this symbol to use
+ ;; The -main function in this namespace will be run at launch (either via `lein run` or if you
+ ;; create an uberjar). It should be variadic, like so:
+ ;;
+ ;; (defn -main
+ ;; "Application entry point"
+ ;; [& args]
+ ;; (comment Do app initialization here))
+ ;;
+ ;; Set :skip-aot metadata on this symbol to use
;; it for other things like the run task or shell wrappers without
;; bringing in AOT if you don't need an executable uberjar.
- :main org.example.sample
+ :main my.service.runner
;; Options to change the way the REPL behaves
:repl-options {;; Specify the string to print when prompting for input.
;; defaults to something like (fn [ns] (str *ns* "=> "))
Please sign in to comment.
Something went wrong with that request. Please try again.