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

fix(remix-serve): handle os signals by closing dev server #2528

Merged
merged 9 commits into from
Apr 7, 2022
Merged

fix(remix-serve): handle os signals by closing dev server #2528

merged 9 commits into from
Apr 7, 2022

Conversation

andrewbrey
Copy link
Contributor

@andrewbrey andrewbrey commented Mar 28, 2022

Add simple signal handlers to the remix-serve cli that will close down the dev server if it receives either a TERM or INT operating system signal. In the case of a failed shutdown of the dev server, log to stderr.

packages/remix-serve/cli.ts Outdated Show resolved Hide resolved
packages/remix-serve/cli.ts Outdated Show resolved Hide resolved
@remix-cla-bot
Copy link
Contributor

remix-cla-bot bot commented Mar 30, 2022

Thank you for signing the Contributor License Agreement. Let's get this merged! 🥳

Copy link
Collaborator

@mcansh mcansh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :chefkiss:

@andrewbrey
Copy link
Contributor Author

@MichaelDeBoey I've pushed up changes for each of your two feedback items - let me know if you have anything else on this one!

@jacob-ebey jacob-ebey merged commit 74918b2 into remix-run:dev Apr 7, 2022
@jacob-ebey
Copy link
Member

Thank you for the contribution :)

@andrewbrey andrewbrey deleted the fix/handle-os-signals branch April 7, 2022 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants