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

`symfony var:expose` not working with multi-app

Đang mở
#592 1 bình luận 0 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
43/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
go, symfony
Lĩnh vực
backend, cli

Hướng nghiên cứu

Start with the upsun:tunnel:open, var:expose-from-tunnel, and var:export command entry points, then trace how Upsun project information is located when run from the backend subdirectory. Reproduce using the issue’s multi-app steps and compare with the single-app case. Done means the tunnel opens and var:export --multiline --debug exports the tunnel variables without the project-information error.

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

Mô tả

When hosting a single Symfony app on Upsun and opening a new ssh tunnel, envVar are exposed :

➜  decouple-train-single git:(main) ✗ symfony upsun:tunnel:open
Are you sure you want to open SSH tunnel(s) to the environment main (type: production)? [Y/n] y

SSH tunnel opened to database at: postgresql://main:[email protected]:30000/main
...
➜  decouple-train-single git:(main) ✗ symfony var:expose

Exposing tunnel service environment variables
➜  decouple-train-single git:(main) ✗ symfony var:export --multiline --debug
ERROR: unable to find a docker-compose.ya?ml or compose.ya?ml for the current directory
ERROR: unable to find a compose directory for the current directory
export DATABASE_DATABASE=main
export DATABASE_DRIVER=postgres
... --> DATABASE_* vars
export PGDATABASE=main
export PGHOST=127.0.0.1
export PGPASSWORD=main
export PGPORT=30000
export PGUSER=main
export SYMFONY_DOCKER_ENV=
export SYMFONY_TUNNEL=main
export SYMFONY_TUNNEL_BRAND=Upsun
export SYMFONY_TUNNEL_ENV=1

But, when hosting a multiple app on Upsun, with .upsun folder at the root, one backend folder (Symfony) and one frontend sub-folder (Next.js), i get this result:

➜  backend git:(main) ✗ symfony var:expose
Exposing tunnel service environment variables

➜  backend git:(main) ✗ symfony var:export --multiline --debug
ERROR: unable to find a docker-compose.ya?ml or compose.ya?ml for the current directory
ERROR: unable to find a compose directory for the current directory
ERROR: unable to get Upsun project information
export SYMFONY_DOCKER_ENV=
export SYMFONY_TUNNEL=
export SYMFONY_TUNNEL_BRAND=Upsun
export SYMFONY_TUNNEL_ENV=

So, for multi-app, it's not asking if we want to to open a ssh tunnel (as for decouple-train-single) and there is an error ERROR: unable to get Upsun project information in the var:export command line.

Steps to reproduce:

symfony upsun:get <project_id>
cd <folder>
cd backend (if multi-app)
symfony upsun:tunnel:open
symfony var:expose-from-tunnel
symfony var:export --multiline --debug

cc @tucksaun

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

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.