You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building up on the feature addition from #87 it might be useful if the user could optionally define start/stop commands.
This would allow flock to show a "start" / "stop" button in the UI and even show the server's terminal output inside the Site UI.
I made a "demo" preview of how I imagine it could work:
if a command is set and the server is running:
If a command is set, but server is not running yet:
If no command is set, it would work just like now:
There also needs to be an option for when the server has a background process (and thus needs two separate start / stop command). In this case we would probably not be able to render the output, but at least the UI could still allow start/stop.
@omarabulkhair-66 Since the PR was from you, do you want to tackle this one too? You don't need to, just offering it to you first. I'll have a look at it myself if not. :)
I'll build it on top of #98, since that one already runs and supervises a site's dev server, with start, restart and its log in the UI. A proxy with a command can reuse that. I'll go with an optional start command whose output the site shows, plus an optional stop command for servers that run in the background. I'll open a draft PR once it works.
Thanks for assigning it! My branch is already on the current main (ddff58c), so nothing to update there.
One thing: #98 isn't merged yet, it's still open (head e124827). I think you mean #87, which landed as ddff58c. Since this work builds on #98's dev server pieces, a new PR will carry #98's commits until #98 is merged. Should I open it stacked now, or wait for #98 first?
Activity
lukas-frey commentedon Nov 4, 2026
@omarabulkhair-66 Since the PR was from you, do you want to tackle this one too? You don't need to, just offering it to you first. I'll have a look at it myself if not. :)
omarabulkhair-66 commentedon Nov 5, 2026
Thanks for offering, I'd be glad to take it!
I'll build it on top of #98, since that one already runs and supervises a site's dev server, with start, restart and its log in the UI. A proxy with a command can reuse that. I'll go with an optional start command whose output the site shows, plus an optional stop command for servers that run in the background. I'll open a draft PR once it works.
lukas-frey commentedon Nov 5, 2026
Great, thanks! I forced pushed some stuff there (to make a clean release changelog), so be sure to update your local branch.
Issue is assigned to you, so you are able to create a PR for it. :)
EDIT: also, #98 is already merged, please make a new PR. 🙏
omarabulkhair-66 commentedon Nov 5, 2026
Thanks for assigning it! My branch is already on the current main (
ddff58c), so nothing to update there.One thing: #98 isn't merged yet, it's still open (head
e124827). I think you mean #87, which landed asddff58c. Since this work builds on #98's dev server pieces, a new PR will carry #98's commits until #98 is merged. Should I open it stacked now, or wait for #98 first?lukas-frey commentedon Nov 5, 2026
Ah yeah. sorry. The way it is now is fine, with #98 and #110 open