pedestal

2020-04-03T09:07:06.025800Z

what is the current status of fern in vase? I just failed to load deps dependency

{:deps {com.cognitect/pedestal.vase {:mvn/version "0.9.4-SNAPSHOT"}
from Clojars
{:deps {com.cognitect/pedestal.vase {:git/url "<https://github.com/cognitect-labs/vase.git>"
                                     :sha "d882bc8f28e8af2077b55c80e069aa2238f646b7"}
works of course; is that my only option if I want to use fern?

2020-04-03T13:13:15.027500Z

@ben.hammond on the back burner atm. We’ve not officially released a version of vase using Fern. There are a few changes I’d like to make before doing that. Just need the time.

👍 1
2020-04-03T13:15:13.028500Z

are there any nasty surprises to be aware of? can I have multiple .fern files that I can link together? do I have to shoehorn everything into one file?

2020-04-03T13:30:06.030500Z

Nast surprises -> not that I know of Multiple file support/using one file -> Vase expects your service config to be in a single file

2020-04-03T13:31:32.031600Z

and if I want some kind of (fern/lit include-file then I need to write my own ?

2020-04-03T13:32:48.032800Z

Yeah. I suppose that could be done. Fern supports plugins

2020-04-03T13:32:51.033100Z

once you start sticking datomic schema in there, I can imagine a single config file getting bloated pretty quickly

2020-04-03T13:34:13.033600Z

Yeah, I could see how it could get large.

2020-04-03T13:34:27.034Z

The primary issue I’d like to resolve before cutting another release is https://github.com/cognitect-labs/vase/issues/45

👍 1
2020-04-03T14:44:10.034400Z

@ben.hammond I’d avoid getting too clever, though. reading in schema as edn should be fine but partitioning config and accessing parent config env in included files is a different matter. The later is not possible

2020-04-03T14:45:48.034600Z

If you do want to partition your config into separate files and access env across them then consider a pre-processing step which joins them prior to loading them.

👍 1
Santiago 2020-04-03T16:08:55.040300Z

I wrote my first API using pedestal and everything works with lein run or using an uberjar, but not inside a container. I tracked it down to a step with a POST call (using clj-http-lite , but I also tried hato ) to GraphQL. Everything works on the REPL outside the container. Could this be related to pedestal, or should I look elsewhere? I tried using both immutant and jetty and it doesn’t make a difference. My host is set to 0.0.0.0 because otherwise I couldn’t send requests to the container

hindol 2020-04-06T21:42:34.053200Z

Most likely a Docker issue. If you are on Linux, maybe try enabling host networking?

Ivan 2020-04-03T17:44:56.041300Z

sounds like a docker network issue; I would make sure the right address and port are reachable.