`symfony var:expose` not working with multi-app
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
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
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của symfony-cli/symfony-cli
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
symfony-cli/symfony-cli#695 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
symfony-cli/symfony-cli#741 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
symfony-cli/symfony-cli#739 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
symfony-cli/symfony-cli#727 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
symfony-cli/symfony-cli#725 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của symfony-cli/symfony-cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 81/100
apache/rocketmq-dashboard#6895 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
agent-butler-finding chore
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
jordansmall/spindrift#5466 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 87/100
777genius/agent-notifications#490 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
devantler-tech/ksail#7836 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
keyxmakerx/Chronicle#1469 ·
Maintainer thường phản hồi trong vòng 1 ngày