Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set port on cljs-repl #46

Open
karneaud opened this issue Jul 22, 2016 · 2 comments
Open

Set port on cljs-repl #46

karneaud opened this issue Jul 22, 2016 · 2 comments

Comments

@karneaud
Copy link

How do you set the port on the repl server?

my env is

[adzerk/boot-cljs "1.7.170-3" :scope "test"]
     [adzerk/boot-cljs-repl "0.3.2" :scope "test"]
     [com.cemerick/piggieback "0.2.1" :scope "test"]
     [weasel "0.7.0" :scope "test"]
     [org.clojure/tools.nrepl "0.2.12" :scope "test"]

tried (cljs-repl :port 9000) but doesn't seem to workas i get

nREPL server started on port 54888 on host 127.0.0.1 - nrepl://127.0.0.1:54888

@karneaud
Copy link
Author

is there anyway to set the host or ip to "0.0.0.0"?

This was referenced Jul 23, 2016
@Deraen
Copy link
Contributor

Deraen commented Jul 23, 2016

First, cljs-repl :port option sets the Cljs Repl websocket server IP. This is separate to nREPL port. To change nrepl port you need to set repl task port option:

(task-options! repl {:port 1234})

repl-env is used together with cljs-repl task and the options are set using the task options.

Remote nrepl should work by setting correct repl options.

Please check Boot wiki to familiarize yourself on how Boot tasks work:

https://github.com/boot-clj/boot/wiki/Tasks
https://github.com/boot-clj/boot/wiki/Task-Options-DSL
(Sorry, task-options! doesn't seem to be mentioned on the wiki)

Github issues are preferably for bug reports and feature requests, for usage help e.g. Clojurians Slack is preferred: https://github.com/boot-clj/boot#boot-- (second paragraph)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants