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

Đang mở
#1,804 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
laravel, php
Lĩnh vực
devtools

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
125
Fork
1
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của beyondcode/herd-community

Tất cả issue của beyondcode/herd-community

Issue tương tự

Thêm issue về DevTools

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.