On Tue, Dec 11, 2012 at 11:07 AM, Jonathon McKitrick <jmckitr...@gmail.com> wrote: > I sort of got clojure interactively running and working with slime. I'd > like to interactively run and test in emacs, then push to heroku. Any > tutorials or pointers on how to do this?
For what it's worth direct socket access is unsupported and will probably break in the future; communication with Heroku dynos is supposed to only happen through the HTTP router. I have an article on using nREPL's HTTP transport to connect to a live dyno, (https://devcenter.heroku.com/articles/debugging-clojure) but unfortunately client-side support for the HTTP transport hasn't been implemented in nrepl.el yet, so you have to use inferior-lisp with `lein repl :connect ...`. The tricky thing here with remote development is that all your :require calls will hit the disk by default, which means that any changes you make to a namespace using region-centric commands (which don't hit the disk) will be overridden the first time they're :required or if they are ever reloaded. I don't have a good solution; you would probably have to modify nrepl.el to prefer the local copy of all files; even that would be difficult without wall-hacking an equivalent of CL's provide function to trick :require into thinking a namespace had already been loaded. I think Laurent Petit was working on addressing this issue in another thread? Anyway, it's possible and would be really cool, but it would also be a lot of work, most of it in elisp. -Phil -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en