Fork me on GitHub
#boot
<
2016-04-16
>
danielsz03:04:14

@alandipert: @micha Howdy? I'm trying to start the new socket server that ships with Clojure 1.8 with BOOT_JVM_OPTIONS. It doesn't seem to work. I think it's because shimdandy (address already in use). Thinking about a solution, I was wondering if it is possible to launch a pod with separate JVM options?

danielsz03:04:41

Maybe I'm doing it wrong, but the official examples talk about starting the JVM with a system property like -Dclojure.server.repl="{:port 5555 :accept clojure.core.server/repl}" that the Clojure runtime will pick up at boot time.

martinklepsch09:04:33

@danielsz: do you get an actual error?

danielsz09:04:42

@martinklepsch: Boot exits with an error (sometimes silently).

danielsz09:04:21

Boot starts multiple Clojure runtimes via shimdandy, so I'm not surprised it doesn't work.

martinklepsch09:04:13

@danielsz: how do you setup/start Boot?

danielsz09:04:11

@martinklepsch: Normally. Are you asking because you've had different results?

martinklepsch09:04:49

yeah, I set the JVM options and started a repl/called clojure.main/main but I think I'm doing something wrong

danielsz09:04:29

@martinklepsch: I typed export BOOT_JVM_OPTIONS="-Dclojure.server.repl='{:port 5559 :accept clojure.core.server/repl}'" in the shell. Then I ran boot.

martinklepsch09:04:30

running boot with boot repl?

danielsz09:04:18

Not necessarily. Even boot -h won't work.

martinklepsch09:04:30

now I see it, thanks

martinklepsch10:04:01

tried different JVM options before

danielsz10:04:16

I speculate it has to do with shimdandy and multiple Clojure runtimes.

danielsz10:04:05

However, the problem of starting the socket server can be solved easily, by using the API. So no big deal.

martinklepsch10:04:48

yeah makes perfect sense, was just confused because I couldn't replicate

danielsz10:04:31

Users will likely try the system property approach first, because that's what the docs talk about. And that will be a problem with Boot. We need to tell them to use the API (http://clojure.github.io/clojure/clojure.core-api.html#clojure.core.server/repl) @alandipert @micha might come up with something.

martinklepsch10:04:48

definitely, should be added to docs or so

danielsz10:04:10

Yeah, I'll write something in the wiki.

martinklepsch10:04:00

@danielsz: add if there's something missing ^

micha14:04:55

@danielsz: nice!