Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Bug] Worktree creation generates broken Nginx config for Herd

オープン
#80 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
laravel, nginx

調査の方向性

まず、PR の worktree 作成を再現し、~/Library/Application Support/Herd/config/valet/Nginx/ に生成されたファイルを調査します。worktree から Herd への登録エントリーポイントを追跡し、rewrite、error_page、fastcgi_index、SCRIPT_FILENAME の値が空になる理由を特定します。生成されたサイトに有効な worktree パスが含まれるか、パスを利用できない場合は登録されず、Herd の Nginx 設定が正常に起動すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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

  1. Use Polyscope to create a worktree (e.g. for a PR)
  2. 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.

主要言語
言語のデータがありません
スター
20
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

beyondcode/polyscope-community のほかの issue

beyondcode/polyscope-community の issue をすべて見る

似ている issue

DevOps の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。