nrepl

braai engineer 2023-08-06T12:16:58.158259Z

How do I expose an nREPL from inside Dokku? I'm deploying my Clojure app to an EC2 Ubuntu box via Dokku, and despite setting a proxy-port, I keep getting Long overflow when I try to connect, even locally from the machine. In my Dockerfile, I have exposed the nREPL port along with the web port:

...
EXPOSE 8080
EXPOSE 7889
The bind host is 0.0.0.0 and I can see the nREPL server started in the logs, but I can't connect to it. I tried setting the nginx proxy port like so:
dokku proxy:ports-add myapp http:7889:7889
I can only assume http is the wrong transport, but Dokku only supports http and https.

Ivar Refsdal 2023-09-27T07:44:04.561689Z

Hi, did you solve this problem? I've been working on a TCP over HTTP proxy for cases like this. There is an example repo for aleph here: https://github.com/ivarref/yasp/tree/main/aleph-example