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

Aperta
#1,804 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
laravel, php
Ambito
devtools

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Nessun dato sulla lingua
Stelle
125
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di beyondcode/herd-community

Tutte le issue di beyondcode/herd-community

Issue simili

Altre issue su DevTools

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.