8000 Auto-Restart start_sse_dev_server.sh on Server File Changes by dvlpjrs · Pull Request #135 · gumloop/guMCP · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Auto-Restart start_sse_dev_server.sh on Server File Changes #135

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? 8000 Sign in to your account

Merged
merged 2 commits into from
May 12, 2025

Conversation

dvlpjrs
Copy link
Collaborator
@dvlpjrs dvlpjrs commented May 9, 2025

Greptile Summary

This PR adds a hot-reloading mechanism by introducing a new file watcher in scripts/server_watcher.py and integrates it into the dev startup script.

• Added scripts/server_watcher.py to recursively monitor src/servers/*.py and trigger server restarts on file changes.
• Refactored start_sse_dev_server.sh to include a kill_server function to clear port conflicts before starting the watcher.
• Uses forceful kill (-9) which may bypass graceful shutdowns; review stability under rapid file changes.

Copy link
Contributor
@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

LGTM

2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@dvlpjrs dvlpjrs merged commit 761324d into main May 12, 2025
1 check passed
@dvlpjrs dvlpjrs deleted the watch_server branch May 12, 2025 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0