Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In very broad strokes:

The start-server command in tools.nrepl https://github.com/clojure/tools.nrepl Will open an nREPL (networked REPL) server on some port of your choosing, by default on localhost. Configure your application to allow this to happen on startup.

SSH from your dev box to the server, and forward the port the REPL is listening on https://help.ubuntu.com/community/SSH/OpenSSH/PortForwarding

(having the nREPL port only listen on localhost and then using SSH to access it is somewhat important for security. Someone else who connects to the nREPL port can run arbitrary code with your app's permissions, see any data being processed by your app, etc.)

From a shell:

lein repl :connect <port>

From vim (with tim pope's fireplace plugin):

:Connect nrepl://localhost:<port>



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: