diff options
| author | Christopher R. Nelson <christopher.nelson@languidnights.com> | 2026-11-01 01:17:43 -0400 |
|---|---|---|
| committer | Christopher R. Nelson <christopher.nelson@languidnights.com> | 2026-11-01 01:17:43 -0400 |
| commit | 0b89b6eb8a0d8d7d69d00ce66a87c9e1de66915a (patch) | |
| tree | 9da2cb03880b85f152a62743506bae9d6b501b1f /rebar.config | |
| parent | 5ff1fbe175af17fbb808c5ea942f465a932da3af (diff) | |
Running the daemon via `rebar3 shell` under systemd exits immediately:
stdin is /dev/null, so the interactive shell reads EOF and terminates
the VM. Add a relx release (with a prod profile that bundles ERTS) and
document running it with `bin/xdg_pipe_menu foreground` instead.
Ship a custom vm.args rather than relx's default, which sets a fixed,
publicly-known cookie while distribution listens on all interfaces.
The node now uses ~/.erlang.cookie, binds distribution to 127.0.0.1,
and is named xdg_pipe_menu@localhost so the release script's ping /
remote_console / stop can reach it even where the hostname resolves
to 127.0.1.1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'rebar.config')
| -rw-r--r-- | rebar.config | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/rebar.config b/rebar.config index 9071343..fa60f19 100644 --- a/rebar.config +++ b/rebar.config @@ -1,6 +1,18 @@ {erl_opts, [debug_info]}. {deps, [{fs, "11.4.1"}]}. +{relx, [ + {release, {xdg_pipe_menu, "0.1.0"}, [xdg_pipe_menu, sasl]}, + {vm_args, "config/vm.args"}, + {mode, dev} +]}. + +{profiles, [ + {prod, [ + {relx, [{mode, prod}]} + ]} +]}. + {shell, [ %% {config, "config/sys.config"}, {apps, [xdg_pipe_menu]} |
