Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Temporarily override "automatic service detection" environment variables

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
38/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
go
Lĩnh vực
cli

Hướng nghiên cứu

Start by reading the Symfony CLI code that detects services from Docker configuration and parses environment variables; the issue does not name files or tests, so first locate those entry points. Reproduce the DATABASE_URL example while service detection is enabled, then determine whether a temporary override can take precedence. Done means the command uses the supplied value without requiring a persistent Docker-config change; the issue has gone unanswered for over a year.

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

Mô tả

Is/could there be a way to temporarily override an env variable? Here's what I mean:

DATABASE_URL=something-else symfony console do:something

In this case, the DATABASE_URL is ignored because it's parsed from the docker config. My use case is with p.sh tunnelling.

I know I can add com.symfony.server.service-ignore: true to the docker config to ignore but then I have to remember to remove after I'm done.

Maybe there's already a way to do this that I'm not seeing?

Ngôn ngữ chính
Go
Star
608
Fork
140
Merge trung bình
13 giờ 6 phút
Pull request đã merge (30 ngày)
36

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

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 symfony-cli/symfony-cli

Tất cả issue của symfony-cli/symfony-cli

Issue tương tự

Thêm issue về Go

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.