Skip to content

Commit

Permalink
depending on hface jar (e.g. itself) in dev, as a temp workaround for…
Browse files Browse the repository at this point in the history
… a figwheel bug: bhauman/lein-figwheel#68
  • Loading branch information
tolitius committed Jan 19, 2015
1 parent 4b42968 commit 45421c8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ ui.routes {:handler hface.ui.routes/app}

:dependencies [[ring-mock "0.1.5"]
[ring/ring-devel "1.3.2"]
[pjstadig/humane-test-output "0.6.0"]]
[pjstadig/humane-test-output "0.6.0"]
[org.hface/hface "0.1.0"]] ;; is needed until figweel bug (https://github.com/bhauman/lein-figwheel/issues/68) is fixed

:plugins [[lein-figwheel "0.2.1-SNAPSHOT"]]

Expand Down
3 changes: 2 additions & 1 deletion src/clj/hface/stats.clj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
parse-string
keys-to-keywords))

;;TODO: atom and hz instance are not serializable.. work in progress
;; TODO: atom and hz instance are not serializable.. work in progress
;; need this due to a figwheel bug: https://github.com/bhauman/lein-figwheel/issues/68#issuecomment-70163386
(defn instance-stats-task []
(let [instance (atom nil)]
(reify
Expand Down
2 changes: 1 addition & 1 deletion src/clj/hface/ui/routes.clj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

(defroutes routes
(GET "/" [] (render-file "templates/index.html" {:dev (env :dev?)}))
(GET "/cluster-stats" [] (to-transit (cluster-stats hz)))
(GET "/cluster-stats" [] (to-transit (cluster-stats @hz)))
(resources "/")
(not-found "Not Found"))

Expand Down

0 comments on commit 45421c8

Please sign in to comment.