Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cd ./app && bun dev as command doesn't read .env vars #511

Open
alarbada opened this issue Oct 31, 2024 · 2 comments
Open

cd ./app && bun dev as command doesn't read .env vars #511

alarbada opened this issue Oct 31, 2024 · 2 comments

Comments

@alarbada
Copy link

alarbada commented Oct 31, 2024

A bit of a weird issue, but I cannot explain it better.

in a vite app that sits at ./app folder, and concurrenlty being executed on the root directory (.), if I run concurrently "cd app && bun dev" the vite app starts, but the environment variables are not read.

This doesn't happen with goreman.

@gustavohenke
Copy link
Member

Hey! Are you able to share a reproduction repository?

@alarbada
Copy link
Author

alarbada commented Nov 4, 2024

Hum not really sorry, but any vite app sitting at a custom ./app folder and running concurrently from the root should be enough to reproduce the error.

I moved to goreman and it has the same annoying behaviour, my current solution is to change the dev command to source .env && vite dev to make it work.

My setup is also a bit uncommon, I've got .env file and an app/.env file. The later is a hard link from the former.
I'm on ubuntu linux.

Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants