diff --git a/build.boot b/build.boot index f98270a..e2e669b 100644 --- a/build.boot +++ b/build.boot @@ -13,9 +13,9 @@ (require '[demo.boot-build :refer :all]) (task-options! - pom {:project (get-env :project) - :version (get-env :version) + pom {:project 'boot-clj-boilerplate + :version "0.1.0-SNAPSHOT" :license {"Eclipse Public License" "http://www.eclipse.org/legal/epl-v10.html"}} - aot {:namespace `#{demo.boot-build}} + aot {:all true} jar {:main `demo.boot-build}) diff --git a/src/demo/boot_build.clj b/src/demo/boot_build.clj index e55fc4a..65db20e 100644 --- a/src/demo/boot_build.clj +++ b/src/demo/boot_build.clj @@ -1,9 +1,10 @@ (ns demo.boot-build (:require [boot.core :as core] [boot.task.built-in :as task] + [boot.cli :as cli] [compojure.core :refer [defroutes GET]] [hiccup.core :refer :all] - [hiccup.core :refer :all] + [hiccup.page :refer :all] [org.httpkit.server :as server] [compojure.route :as route] [ring.middleware.reload :refer [wrap-reload]] @@ -20,6 +21,7 @@ (defn -main [& args] (server/run-server (wrap-reload #'app) {:port 8000}) + (println app) (println (str "Server is running on port 8000"))) (core/deftask build @@ -31,6 +33,6 @@ [] (println "hello")) -;; (core/deftask run -;; [] -;; (-main)) +(core/deftask run + [] + (-main))