-
Notifications
You must be signed in to change notification settings - Fork 331
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
process: fix process-compose settings and other process managers #1161
Conversation
Relevant example: #1104 (comment) |
We also should update examples and docs and make sure all options are deprecated/renamed. |
3b76a5c
to
943f31d
Compare
Deploying devenv with Cloudflare Pages
|
An update on the changes so far. Following the same pattern, we were thinking of renaming Process manager changes
Process-compose changes
|
This follows the same pattern as |
13f0f97
to
4a3211c
Compare
0743787
to
beee32b
Compare
Needs more testing.
- Drop -U mode: we already provide a default socket for you - Make socket path non-null - Simplify escapes - Pass port
23fea9a
to
3dfe5e4
Compare
d6ac7bd
to
ce335f1
Compare
I started updating
process.process-compose
to allow overriding individual settings without losing any of the defaults.But I noticed that, despite the description, those settings are never used.
What needs to be fixed
process.process-compose
attrs
{ version = "0.5"; ... }
tui
andunix-socket
.process.process-compose.tui
any
true
--tui
CLI optionprocess.process-compose.unix-socket
any
"${config.devenv.runtime}/pc.sock"
--unix-socket
path.process.process-compose.settings
yaml
{}
implementation in configprocess-managers.process-compose.settings.tui
bool
lib.mkDefault true
process-managers.process-compose.settings.port
int
lib.mkDefault 9999
Other issues
tui = false;
breaks process-compose. Fixed by serializing the bool totrue
orfalse
, instead of"1"
and""
.PC_TUI_ENABLED
doesn't exist inprocess-compose
. There'sPC_DISABLE_TUI
though. edit: nevermind, looks like this exists for backwards-compatibility with previous devenv versions. We should document this. See unable to change process-compose tui #1109.Proposal
process.process-compose
process-managers.process-compose.settings
.process.process-compose.tui
process-managers.process-compose.tui
.process.process-compose.unix-socket
process-managers.process-compose.unixSocket
. Orunix-socket
🤷.process-managers.process-compose.settings
process-managers.process-compose.settings.port
process-managers.process-compose.port
.process-managers.process-compose.settings.tui
process-managers.process-compose.useUnixSocket
true
by default and controls the--use-uds
CLI flag. Or enable whenport = 0
.