Thanks, but how SSH tunnel would help here? Currently, I see that 
ClojureScript hard coded localhost HOST and PORT in the JavaScript code 
which would send a request from the browser to establish REPL connection. 
Or you suggest setup forwarding localhost:9090 from local machine to the 
cloud? :) In this case it removes all advantages of cloud development 
because I should set up local environment before and in some cases I even 
could not do it at all
On Thursday, April 22, 2021 at 1:58:01 PM UTC+3 larsn...@gmail.com wrote:

> Hi,
> I would stick with SSH tunnels for this tbh.. Because once you fix this 
> particular issue right here, there's 2-3 similar issues showing up in 2-4 
> months; who knows. I use a tiny bash script in each project that deals with 
> the particular ports needed.
>
> mvh, L
>
> On Wednesday, April 21, 2021 at 8:40:35 PM UTC+3 rv.m...@gmail.com wrote:
>
>> Hi,
>>
>> I'm using a cloud development platform (Gitpod) and it automatically 
>> creates proxy from public URL to localhost, so you can develop a web 
>> application from cloud and see the result. I'm trying to run cljs REPL, but 
>> it fails to connect because it tries to connect to the REPL on 
>> `localhost:9090` which is not accessible from outside because I use public 
>> URL in a browser.
>>
>> I have looked at the code and looks like HOST and PORT in browser 
>> hard-coded
>>
>> https://github.com/clojure/clojurescript/blob/a4673b880756531ac5690f7b4721ad76c0810327/src/main/cljs/clojure/browser/repl.cljs#L31
>>  
>> but still maybe I have missed something, and it's possible to set up REPL 
>> for my use case. So would be glad to any response
>>
>> Thanks
>>
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/0d83b21a-745e-4b12-b27d-d9566bf748b2n%40googlegroups.com.

Reply via email to