Skip to content
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

flow restart command #8695

Open
Brianzchen opened this issue Jun 26, 2021 · 3 comments
Open

flow restart command #8695

Brianzchen opened this issue Jun 26, 2021 · 3 comments

Comments

@Brianzchen
Copy link
Contributor

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

@mroch
Copy link
Contributor

mroch commented Jun 26, 2021

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.

@lyleunderwood
Copy link
Contributor

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

@Brianzchen
Copy link
Contributor Author

@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
Projects
None yet
Development

No branches or pull requests

3 participants