Skip to content

Start/stop proxy via UI #108

Closed

Description

@lukas-frey

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:
Image

If a command is set, but server is not running yet:
Image

If no command is set, it would work just like now:
Image

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.

Activity

  1. added theissue type on Nov 4, 2026
  2. lukas-frey commented on Nov 4, 2026

    @lukas-frey
    MemberAuthor

    @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. :)

  3. added this to the v1.x milestone on Nov 4, 2026
  4. omarabulkhair-66 commented on Nov 5, 2026

    @omarabulkhair-66
    Contributor

    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.

  5. lukas-frey commented on Nov 5, 2026

    @lukas-frey
    MemberAuthor

    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. 🙏

  6. omarabulkhair-66 commented on Nov 5, 2026

    @omarabulkhair-66
    Contributor

    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?

  7. lukas-frey commented on Nov 5, 2026

    @lukas-frey
    MemberAuthor

    Ah yeah. sorry. The way it is now is fine, with #98 and #110 open

  8. removed this from the v1.1.0 milestone on Nov 7, 2026
  9. added this to the v1.1.0 milestone on Nov 8, 2026
  10. removed this from the v1.1.0 milestone on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions