[Bug]: Dev server auto-start does not work on subdomains of a site

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

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

評価

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

調査の方向性

Start in LaravelValetDriver::ensureViteDevServer(), which posts the site name including the subdomain (for example app.mysite) to /ai/dev-ensure and writes the cooldown file under dev-ensure/md5 of that name. Compare with herd processes --site=mysite --json, which reports a path and available processes, to see how the parent site should be resolved from a subdomain. Done when https://app.mysite.test starts the artisan dev stack and no cooldown file is written for the subdomain.

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

説明

macOS
Platform

macOS

Operating system version

27.2.1

System architecture

ARM64 (M1, M2, etc)

Herd Version

2.1.0

PHP Version

8.3-8.5

Bug description

Opening https://app.mysite.test (a wildcard subdomain of the parked site mysite) never starts
the artisan dev stack. Opening https://mysite.test starts it as expected.

LaravelValetDriver::ensureViteDevServer() posts the site name including the subdomain
(app.mysite) to /ai/dev-ensure. Herd does not know a site with that name and declines, so the
driver writes the cooldown file dev-ensure/md5("app.mysite") on every visit.

Linking the subdomain as its own site does not help either:

herd link app.mysite
herd processes --site=app.mysite --json
→ "path": null, every process "available": false

herd processes --site=mysite --json
→ "path": "/path/to/mysite/", every process "available": true

herd parked does not list the linked alias at all, presumably because it points to the same
directory as the parked site.

Steps to reproduce

No response

Relevant log output

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

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

beyondcode/herd-community のほかの issue

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

似ている issue

DevTools の issue をもっと見る

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

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