DioxusLabs / DioxusLabs/dioxus

Add SIGHUP support to `dx serve` to force reload

Open
#5,272 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

## Feature Request

I'm using `dx serve` with Claude Code, but it's having trouble managing the dx serve process itself so I'm running `dx serve` in another terminal. This works reasonably well, except that sometimes when mid-edit the serve loop gets into a bad state and I need to tab over and hit `r` to force a rebuild.

I was hoping that CC could trigger that action itself by sending a `SIGHUP` signal to dx (e.g. by using `pkill -HUP dx` but currently that actually just kills dx serve.

## Implement Suggestion

As far as prior art, nginx is a good example where SIGHUP forces a reload of nginx.conf. As a first pass, having SIGHUP behave just like pressing `r` seems like a good start.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.