Fork me on GitHub
#datomic
<
2019-10-30
>
ssdev18:10:54

Hey folks, noob question for ya. I'm messing around with web service ions currently and am curious how I can develop locally so I can see what happens when a web request comes in. Is there a way to run these functions locally?

dmarjenburgh04:10:43

You can run a local web server (e.g. Jetty) with your ring handler. Usually the ion handler is just wrapping the ring handler with datomic.ion.lambda.api-gateway/ionize. See https://docs.datomic.com/cloud/ions/ions-reference.html and the ion-starter project.

👍 4
daniel.spaniel22:10:31

anyone else found that they cant use cloud connection to datomic ( in the last month or 2 something changed ) and now the connection I make from development to the cloud db hangs after the first try. does 1 hit and then refuses to do more. so odd .. so debilitating

daniel.spaniel22:10:19

the connection hangs with this call <ws://127.0.0.1:9630/ws/worker/main/bd3f3e48-e8b8-438e-840c-61ae23f451cf/33666b32-f7f8-45d7-bbe6-7d54f906fa94/browser>

daniel.spaniel22:10:23

very interesting

souenzzo22:10:19

@dansudol this 9630 port looks like #shadow-cljs stuff. #shadow-cljs should be use in dev-time only

daniel.spaniel22:10:09

I know your right. I killed shadowjs but it still hanging

daniel.spaniel22:10:00

not sure how this ever worked before because we used to develop off a cloud connection running shadowjs too .. bizzarre

daniel.spaniel22:10:26

we use mem db now locally so its been a while