Env File Path empty textbox behavior #228

Open
opened 2025-10-31 15:05:41 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @Noggog on GitHub (Feb 24, 2025).

I had some trouble deploying a stack after editing back and forth on the environment variable UI controls.

One I was able to narrow down was the behavior of the Env File Path textbox. On a fresh stack, it has the actual text contents ".env". This of course makes sense as a default value.

However, if you remove the text ".env" so that it's an empty textbox, a "watermark" .env shows up in the box. This suggests that since the textbox is empty, it'll be using .env as the path as a fallback. Here's a video of what I mean:
Image

However, when running the stack, I got the error "failed to write environment file "..." is a directory
Image

This suggests that even though the watermark suggests it'll use .env as the file name, the logic does not and bugs out

Originally created by @Noggog on GitHub (Feb 24, 2025). I had some trouble deploying a stack after editing back and forth on the environment variable UI controls. One I was able to narrow down was the behavior of the `Env File Path` textbox. On a fresh stack, it has the actual text contents ".env". This of course makes sense as a default value. However, if you remove the text ".env" so that it's an empty textbox, a "watermark" `.env` shows up in the box. This suggests that since the textbox is empty, it'll be using `.env` as the path as a fallback. Here's a video of what I mean: ![Image](https://github.com/user-attachments/assets/e94c35d8-d799-4791-9db9-58086d790826) However, when running the stack, I got the error "failed to write environment file "..." is a directory ![Image](https://github.com/user-attachments/assets/2d69707d-dd62-43aa-b1cb-eb3f667e902a) This suggests that even though the watermark suggests it'll use `.env` as the file name, the logic does not and bugs out
GiteaMirror added the enhancement label 2025-10-31 15:05:41 -05:00
Author
Owner

@xarthurx commented on GitHub (Aug 10, 2025):

I've also struggled with correctly setting up the env.

Currently, the mechanism and how the webUI handles these settings are very buggy and unclear...

@xarthurx commented on GitHub (Aug 10, 2025): I've also struggled with correctly setting up the env. Currently, the mechanism and how the webUI handles these settings are very buggy and unclear...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/komodo#228