hello! is it possible to alias a defstate under a different name?
I tried (def alias some-defstate)
but that doesn’t seem to work
@schmee: what would be a reason to do that?
@pandeiro: usually you would only keep "`required`" config params in a classpath. you can replace an existing config file in a classpath by another config file in a classpath using :resource
:
(cprop/load-config :resource "path/to/another/config-in-classpath.edn")
@tolitius Thanks; so the solution I came up with was to manually exclude the classpath config prior to building the uberjar for deployment; that way the actual production config is used, not merged with the repo's "production-like" config
The reason for having a production-like config checked in was for production CLJS builds and being able to run the production uberjar in docker locally
Fortunately Boot was flexible enough to make that exclusion painless
@tolitius just convenience 🙂 I want to have long names in the code, but shorter names at the REPL
@pandeiro I see. I usually keep a "`the repo's "production-like" config`" in dev-resources
which is in classpath during development, but never builds into an uberjar
@schmee: scratch that.. (the previous idea). can't you use tabs for autocompletion in REPL?
sure, but sometimes there are collisions and whatnot…
this is obviously not a big problem, the idea just hit me that it would be useful in this case, so now I know there there is no built-in way to do it at least 🙂