morse
morse copied to clipboard
:host property is ignored
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
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:
- I have never used morse before and decided to check it out.
- I installed morse as a tool on my laptop
- on my work vm I started a replicant prepl per the docs passing
:host "the-hostname" - launched the morse tool locally with the params to connect to the replicant prepl
- tried to eval some stuff, and nothing happened
- eventually noticed the stacktrace printed to the terminal where I started the morse tool saying it could not connect
- figured I must have launched replicant wrong and changed
:hostto an ip instead of a hostname - noticed no matter what I passed as
:hostto replicant the started socket server is always just listening on localhost - looked at the replicant code and found it was ignoring
:host
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})