Skip to content

flow restart command #8695

Open
Open

Description

@Brianzchen

Proposal

I would like to see a yarn flow restart command that runs yarn flow stop && yarn flow.

Use case

Sometimes when there is a single large write to the codebase such as flow-typed install or maybe git pull flow craps itself and doesn't recheck. A really simple way to fix this is to run yarn flow stop && yarn flow which is a stop and restart. It would be pretty great if I can just run yarn flow restart as a standard cli command so I don't need to configure every repo with npm scripts that does this for me because I manage multi repos

Activity

  1. mroch commented on Jun 26, 2021

    @mroch
    Contributor

    i'd selfishly like this too because during development I often switch between different binaries, and trying to use bash history but changing flow stop && flow start to flow-dev stop && flow-dev start is annoying :)

    having to restart the server is bad though. I think we should add this command, but also try to understand the root cause any time someone needs to use it.

  2. lyleunderwood commented on Jun 26, 2021

    @lyleunderwood
    Contributor

    Just as a potential data point, by far the most common reason I stop flow is to free up system memory 😛

  3. Brianzchen commented on Sep 7, 2021

    @Brianzchen
    ContributorAuthor

    @mroch checking does this mean that this will be in your future todo that we can expect?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions