opencode: use serve command for web interface

This commit is contained in:
Caleb Norton 2026-03-30 12:25:41 -05:00 committed by Austin Horstman
parent a184bd2f84
commit a7d2aca3f0
3 changed files with 5 additions and 5 deletions

View file

@ -109,7 +109,7 @@ in
"DEBUG"
];
description = ''
Extra arguments to pass to the opencode web command.
Extra arguments to pass to the opencode serve command.
These arguments override the "server" options defined in the configuration file.
See <https://opencode.ai/docs/web/#config-file> for available options.
@ -498,7 +498,7 @@ in
};
Service = {
ExecStart = "${lib.getExe cfg.package} web ${lib.escapeShellArgs webCfg.extraArgs}";
ExecStart = "${lib.getExe cfg.package} serve ${lib.escapeShellArgs webCfg.extraArgs}";
Restart = "always";
RestartSec = 5;
};
@ -515,7 +515,7 @@ in
config = {
ProgramArguments = [
(lib.getExe cfg.package)
"web"
"serve"
]
++ webCfg.extraArgs;
KeepAlive = {