flow
flow copied to clipboard
flow restart command
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
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.
Just as a potential data point, by far the most common reason I stop flow is to free up system memory :stuck_out_tongue:
@mroch checking does this mean that this will be in your future todo that we can expect?