-
Notifications
You must be signed in to change notification settings - Fork 395
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
feat: add flag to disable shell mode for nest start --watch
#2522
base: master
Are you sure you want to change the base?
Conversation
Any update on this? 🙂 The EADDRINUSE issue makes local development rather inconvenient |
@kamilmysliwiec is there smth we can do to get this PR merged? |
I'm not sure about the name 'no shell'. To me, it doesn't tell what will happen when using it. Do you know any other high level name? But I can't think of any other name tho To be fair, I'm not sure if we should have |
I agree that the name isn't self-descriptive (though there is a description for that flag). We can probably use smth like
Me neither, i decided to introduce a flag just in favor of backward compatibility |
Thanks for this PR. Any update this? This will improve my DX. |
Hi, @quallrum do you need any help with this? How can we get this merged? |
When running on Linux/WSL, `nest start --watch` does not wait the app to shutdown on restart. That leads to two instances of application running simultaneously, especially if it has async shutdown hooks. That commit fixes that adding an option to disable shell mode when spawning child processes so then app will completely shutdown first and only then started again. Thanks @jleverenz for the investigation and solution idea in nestjs/nest-cli/1614 fixes nestjs/nest-cli/1614
d474f5f
to
21291f2
Compare
@iamsolankiamit hello, i've resolved the conflict, but unsure what can be done to finish this MR. At least there are open discussions regarding |
When running on Linux/WSL,
nest start --watch
does not wait the app to shutdown on restart. That leads to two instances of application running simultaneously, especially if it has async shutdown hooks. That commit fixes that adding an option to disable shell mode when spawning child processes so then app will completely shutdown first and only then started again. Thanks @jleverenz for the investigation and solution idea in #1641fixes nestjs/nest-cli/1614
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Nest does not wait for app to stop when doing hot reload (on files change)
Issue Number: #1614
What is the new behavior?
Now running
nest start --watch --noShell
hot reload will first wait for app to gracefully stopDoes this PR introduce a breaking change?
Other information