flow icon indicating copy to clipboard operation
flow copied to clipboard

flow restart command

Open Brianzchen opened this issue 4 years ago • 3 comments
trafficstars

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

Brianzchen avatar Jun 26 '21 06:06 Brianzchen

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.

mroch avatar Jun 26 '21 14:06 mroch

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

lyleunderwood avatar Jun 26 '21 21:06 lyleunderwood

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

Brianzchen avatar Sep 07 '21 21:09 Brianzchen