Procházet zdrojové kódy

logging boot main function

bs-boot-httpkit-compojure-implementation
sahabaishakhi před 5 roky
rodič
revize
d7c3e7d60c
2 změnil soubory, kde provedl 9 přidání a 7 odebrání
  1. +3
    -3
      build.boot
  2. +6
    -4
      src/demo/boot_build.clj

+ 3
- 3
build.boot Zobrazit soubor

@@ -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})

+ 6
- 4
src/demo/boot_build.clj Zobrazit soubor

@@ -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))

Načítá se…
Zrušit
Uložit