devbox icon indicating copy to clipboard operation
devbox copied to clipboard

Support `.env` files from the VSCode Extension

Open Lagoja opened this issue 2 years ago • 4 comments

Lagoja avatar Sep 14 '23 22:09 Lagoja

+1 please

hbouhadji avatar Jun 19 '24 12:06 hbouhadji

@hbouhadji I can add this fairly quick. Can you expand on what is your desired outcome with regards to .env files and the vscode extension?

mohsenari avatar Jun 19 '24 14:06 mohsenari

@mohsenari

Pretty much like said in this command -> https://github.com/jetify-com/devbox/issues/407#issuecomment-1670640386

I want to add variables to a .env file like this:

NGINX_WEB_PORT=8081
NGINX_WEB_ROOT=../../../devbox.d/web

and be able to run devbox services up without having to specify the --env-file for each command or using direnv

maybe by adding a env_file to the devbox.json ?

I don't use vscode specifically but since #407 is closed i though this issue represent my need the most

hbouhadji avatar Jun 19 '24 14:06 hbouhadji

The end goal is to let my collaborators overwrite some vars if needed with a not versioned file (like the web_port)

hbouhadji avatar Jun 19 '24 14:06 hbouhadji