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

Abierto
#1,804 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
laravel, php
Área
devtools

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Sin datos de lenguaje
Estrellas
125
Forks
1
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de beyondcode/herd-community

Todos los issues de beyondcode/herd-community

Issues similares

Más issues de DevTools

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.