Fork me on GitHub
#boot
<
2017-12-04
>
zalky16:12:32

Hi all: let's say you've started you're dev pipeline. What is the generally recommended way to signal to the rest of the app that you are in "development" mode?

richiardiandrea17:12:50

@zalky that really depends on you, and the app. in a classic web backing with .edn config file you will have different folders with different configs and you can then have inside there a :debug key or something

zalky18:12:13

@richiardiandrea: thanks for the suggestion. I found this while doing some research: https://github.com/weavejester/environ, dead simple to use for now.

dominicm18:12:39

@zalky bit of a clojure question really, buuuut, we have dev/dev.clj added to the classpath during development. Developers start their system from there, and the system function has :dev hardcoded in as a profile.

dominicm18:12:57

Then we use that to read an Aero config. Then the code uses the config to decide what to do beyond there.

zalky18:12:58

@dominicm: thanks for the response! Will keep that in the back pocket if environ is not sufficient.

borkdude18:12:30

@zalky We use this one: https://github.com/dunaj-project/crispin - it’s awesome, but not well known

borkdude18:12:05

It supports an in project config.clj file (which just contains edn) + overriding via environment variables and more (but the first two is how we typically use it)

zalky18:12:49

Awesome, great option. Will look into it!

borkdude18:12:39

I see now it even supports json.

borkdude18:12:22

We set environment variables in our CI server so you can override per environment without creating different config files

danielcompton19:12:41

Would it make sense to make an issue on Boot to separate the resolution and download of plugins from the adding of them to the classpath? More context here https://github.com/Deraen/sass4clj/issues/23

danielcompton19:12:20

There's lots of places that want to be able to download the dependencies ahead of build time for lots of good reasons.