This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-29
Channels
- # aws (6)
- # beginners (33)
- # bitcoin (2)
- # boot (22)
- # carry (2)
- # cider (5)
- # clara (21)
- # cljs-dev (115)
- # cljsrn (40)
- # clojure (161)
- # clojure-dev (73)
- # clojure-italy (38)
- # clojure-russia (88)
- # clojure-spec (123)
- # clojure-uk (58)
- # clojurescript (88)
- # core-async (26)
- # cursive (5)
- # datascript (18)
- # datomic (26)
- # hoplon (50)
- # java (2)
- # jobs (1)
- # leiningen (10)
- # lumo (1)
- # off-topic (18)
- # om (9)
- # onyx (26)
- # parinfer (13)
- # pedestal (41)
- # quil (1)
- # re-frame (27)
- # reagent (21)
- # ring-swagger (11)
- # slack-help (3)
- # spacemacs (8)
- # specter (5)
- # sql (42)
- # timbre (1)
- # uncomplicate (7)
- # untangled (3)
- # videos (1)
- # yada (26)
I added a new example for using CircleCI v2 with Boot, works a lot better now, no more problems with caching and inotify watches: https://github.com/boot-clj/boot/wiki/Running-Boot-on-CI-systems#circleci-v2
anybody has a tip on how to debug what is going on here? https://github.com/boot-clj/boot/issues/607
more concretely: how to debug why the watcher from https://github.com/boot-clj/boot/blob/master/boot/core/src/boot/core.clj#L729 stops calling the callback fn
folks have to constantly restart the boot instance to get it working again, which isn’t…. ideal
can this be related to https://github.com/boot-clj/boot/issues/477?
@kommen, I wonder if this is some problem with inotify and Docker… I assume you're watching some mounted host directory with boot?
@miikka we’re using this as the base image: https://hub.docker.com/_/node/
and no, it doesn’t seem to be an issue with inotify and docker. a another boot process running in same container is still getting and processing the events
does boot offer a way to modify dependencies and auto-require them for different builds?
Initially I wanted something like this: dynamically require certain dependencies depending on a clojure-defines compiler flag e.g.
(ns my.ns (:require
[my.dependency :as a]
(when goog.DEBUG [clojure.test.check]))
But then I figure that boot must support this somehow and I shouldn’t have this oddness in my codebase.
The ultimate goal is to not include test.check and its dependencies in my prod build, but to have it included in the dev builds.Looks like I might be able to get away with something using :preloads https://github.com/clojure/clojurescript/wiki/Compiler-Options#preloads
you can use a different namespace as entry point and require you.project.core from there
What would a :not-found
handler in boot-http look like to support pushState
? It seems like you'd want to just serve the same index HTML file that is set by default but :not-found
expects a ring handler, not Ring middleware. Am I missing something here? /cc @pandeiro
Relevant line: https://github.com/pandeiro/boot-http/blob/master/src/pandeiro/boot_http.clj#L53
@kenny Yeah, I think as originally contributed, it takes a symbol pointing to a handler function. But it could also just take a string representing a file or resource and serve that. PR welcome.
Actually it's not really middleware. It'd essentially be a replacement for not-found-handler
.