cemerick / austin

The ClojureScript browser-REPL rebuilt stronger, faster, easier.
510 stars 31 forks source link

Hardcode port of repl-env #29

Closed txrev319 closed 10 years ago

txrev319 commented 10 years ago

Consider the following blob:

lein do cljsbuild once, repl
Compiling ClojureScript.
nREPL server started on port 32794
REPL-y 0.2.0
Clojure 1.5.1
    Docs: (doc function-name-here)
          (find-doc "part-of-name-here")
  Source: (source function-name-here)
 Javadoc: (javadoc java-object-or-class-here)
    Exit: Control+D or (exit) or (quit)

bcrepl=> (def repl-env (reset! cemerick.austin.repls/browser-repl-env     (cemerick.austin/repl-env)))
Browser-REPL ready @ http://localhost:51098/5677/repl/start
#'bcrepl/repl-env

In particular, the following line:

http://localhost:51098/5677/repl/start

Is there a way to hard code the port that cemerick/austin opens up?

The server I'm talking to is behind a firewall. Thus, I need to either (1) tell iptables ot open up 51098 or (2) do port forwarding over ssh. I'm okay with this, but I'd prefer the port stay constant.

Question: is there a way to hardcode the port cemerick/austin opens up on?

Thanks!

txrev319 commented 10 years ago

responding to self:

rtfm: https://github.com/cemerick/austin#server-port-selection