Skip to content

Commit

Permalink
-- Bug -- This commit is include a widely known boot-clj issue
Browse files Browse the repository at this point in the history
          which will cause  *data-reader* symbol lose its values!
          I had researched hard and couldn't solved it , so commit it here

          error messages: "No reader function for tag db/id"

          please read those posts:
          boot-clj/boot#47
          http://hoplon.discoursehosting.net/t/question-about-data-readers-with-datomic-and-boot/99
  • Loading branch information
Sage Han committed Mar 6, 2016
1 parent 9e5c476 commit dd2a81c
Show file tree
Hide file tree
Showing 36 changed files with 720 additions and 29 deletions.
1 change: 1 addition & 0 deletions Code/app_Web/miaomfood/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/.boot
/target
/resources/public
/.nrepl-port
/.repl-history
56 changes: 34 additions & 22 deletions Code/app_Web/miaomfood/build.boot
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
(set-env!
:dependencies '[[adzerk/boot-cljs "1.7.228-1"]
[adzerk/boot-reload "0.4.5"]
[compojure "1.4.0"]
[hoplon/castra "3.0.0-SNAPSHOT"]
[hoplon/boot-hoplon "0.1.10"]
[hoplon/hoplon "6.0.0-alpha13"]
[org.clojure/clojure "1.7.0"]
[org.clojure/clojurescript "1.7.228"]
[pandeiro/boot-http "0.7.3"]
[ring "1.4.0"]
[ring/ring-defaults "0.1.5"]
[com.datomic/datomic-free "0.9.4766"]
[datascript "0.15.0"]
[org.clojure/algo.generic "0.1.0"]]
:source-paths #{"src/hl" "src/cljs"}
:resource-paths #{"assets"})
:dependencies '[
[org.clojure/clojure "1.7.0"]
[org.clojure/clojurescript "1.7.228"]
[compojure "1.4.0"]
[ring "1.4.0"]
[ring/ring-defaults "0.1.5"]
[com.datomic/datomic-free "0.9.4766"]
[datascript "0.15.0"]
[org.clojure/algo.generic "0.1.0"]
[environ "1.0.1"]
[mount "0.1.7"]

;; boot cljs
[pandeiro/boot-http "0.7.3"]
[adzerk/boot-cljs "1.7.228-1"]
[adzerk/boot-reload "0.4.5"]
[hoplon/castra "3.0.0-SNAPSHOT"]
[hoplon/boot-hoplon "0.1.10"]
[hoplon/hoplon "6.0.0-alpha13"]]

:target-path "target/public"
:source-paths #{"src/hl" "src/cljs" "src/clj"}
:resource-paths #{"resources/assets"})

(require
'[adzerk.boot-cljs :refer [cljs]]
Expand All @@ -26,12 +33,17 @@
"Build miaomfood for local development."
[]
(comp
(watch)
(speak)
(hoplon)
(reload)
(cljs)
(serve :port 8000)))
(serve
:init 'miaomfood.db/init
:handler 'miaomfood.core/handler
:resource-root "target/public"
:reload true
:port 8000)
(watch)
(speak)
(hoplon :pretty-print true)
(reload)
(cljs :optimizations :none :source-map true)))

(deftask prod
"Build miaomfood for production deployment."
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
Loading

0 comments on commit dd2a81c

Please sign in to comment.