Help with changing the ctx in biff #233
augustulus11
started this conversation in
General
Replies: 1 comment
-
Hi! The problem is in the order of your components. ```clojure
(def components
[biff/use-aero-config
use-postgres
biff/use-queues
biff/use-jetty
biff/use-chime
biff/use-beholder]) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm new to clojure and thought I'd try giving biff a go. I'm just making a simple blog but thought I'd challenge myself to use postgres as the database. I followed the biff postgres tutorial however I've found that the :example/ds key from the context returns nil (I also removed everything the blog wouldn't need like authentication).
The exception I get is
... and after some debugging I found that
ds
inblog-home
is always nil.I attempted to add the middleware like so:
... but this did not fix anything.
Also, while looking at the repl, I found that ds is always present:
And I get
#object[next.jdbc.connection$url_PLUS_etc$reify__29062 0x149be200 postgresql://tester:postgres@localhost:5433/xyz]
so I am setting up JDBC correctly and putting it in the system map, it just doesn't show up blog's get.
here is the blog's github repo
Beta Was this translation helpful? Give feedback.
All reactions