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

:host property is ignored #11

Open
puredanger opened this issue Feb 8, 2024 · 2 comments
Open

:host property is ignored #11

puredanger opened this issue Feb 8, 2024 · 2 comments

Comments

@puredanger
Copy link
Contributor

morse doesn't show any errors in the UI when it cannot connect to a remote, you just get a stacktrace written to stdout of the process

@hiredman
Copy link

hiredman commented Feb 8, 2024

replicant is the project that is actually ignoring the :host key, so when you start a replicant server it can only listen on localhost,
but the morse docs for running remotely reference starting replicant with the :host key.

what happend to me is:

  1. I have never used morse before and decided to check it out.
  2. I installed morse as a tool on my laptop
  3. on my work vm I started a replicant prepl per the docs passing :host "the-hostname"
  4. launched the morse tool locally with the params to connect to the replicant prepl
  5. tried to eval some stuff, and nothing happened
  6. eventually noticed the stacktrace printed to the terminal where I started the morse tool saying it could not connect
  7. figured I must have launched replicant wrong and changed :host to an ip instead of a hostname
  8. noticed no matter what I passed as :host to replicant the started socket server is always just listening on localhost
  9. looked at the replicant code and found it was ignoring :host

@hiredman
Copy link

hiredman commented Feb 8, 2024

the work around I ended up using is starting the replicant prepl using:

(clojure.core.server/start-server 
 {:port   23945,
  :name   "rds"
  :address "0.0.0.0"
  :accept 'clojure.data.alpha.replicant.server.prepl/rds-prepl
  :args   [(#'replicant/create-default-cache)]
  :server-daemon false})

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