[Bug] Worktree creation generates broken Nginx config for Herd
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- laravel, nginx
- Domain
- devops, infrastructure
Research direction
Start by reproducing worktree creation for a PR and inspect the generated file in ~/Library/Application Support/Herd/config/valet/Nginx/. Trace the worktree-to-Herd registration entry point and determine why the rewrite, error_page, fastcgi_index, and SCRIPT_FILENAME values are empty. Done means the generated site has valid worktree paths, or is not registered when paths are unavailable, and Herd's Nginx configuration starts successfully.
Written by the indexing model from the issue text.
Description
Description
When Polyscope creates a worktree, it appears to register a new site in Laravel Herd's Nginx configuration. However, the generated config file contains empty replacement strings, which causes Nginx to fail to start entirely.
Version
- Polyscope: 0.14.0
- Laravel Herd (macOS)
Steps to reproduce
- Use Polyscope to create a worktree (e.g. for a PR)
- Herd's Nginx server crashes and fails to restart
Root cause
The generated Nginx site config (in ~/Library/Application Support/Herd/config/valet/Nginx/) contains empty strings where paths should be:
location / {
rewrite ^ "" last; # ← empty replacement, invalid in Nginx
}
error_page 404 ""; # ← empty
fastcgi_index ""; # ← empty
fastcgi_param SCRIPT_FILENAME ""; # ← empty
Nginx throws:
[emerg] empty replacement in .../config/valet/Nginx/jolly-newt.test:28
nginx: configuration file ... test failed
This prevents all Herd sites from working, not just the Polyscope worktree site.
Expected behavior
The generated Nginx config should contain valid paths pointing to the worktree directory, or the site should not be registered in Herd if the paths are unavailable.
Workaround
Manually delete the broken config file from ~/Library/Application Support/Herd/config/valet/Nginx/ and restart Herd.
- Dominant language
- No language data
- Stars
- 20
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from beyondcode/polyscope-community
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
beyondcode/polyscope-community#198 · 1 comment · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
All issues in beyondcode/polyscope-community
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
needs-triage🔍
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
kind/bug needs-triage
Difficulty 1/5 Under an hour Newbie friendliness 72/100
matrixorigin/matrixone#29223 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
copse-dev/agent-pane#2953 ·