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

Is there anyway to use sections created in the .env file? #563

Closed
MatheusGgit opened this issue Dec 15, 2023 · 4 comments
Closed

Is there anyway to use sections created in the .env file? #563

MatheusGgit opened this issue Dec 15, 2023 · 4 comments

Comments

@MatheusGgit
Copy link

I would like to separate some variables in my .env file like this:

[SECTION]
VAR=

[SECTION_TWO]
VAR=

is there anyway to do this?
Sorry if this is a dumb question, but i found nothing about this

@GrahamCampbell
Copy link
Collaborator

No this is not supported by the out of the box parser. The closest thing is comments, that use a hash at the start.

@GrahamCampbell
Copy link
Collaborator

I guess your section syntax is really identical to a comment, so yes, this is supported, and the syntax is # SECTION. 🤷

@MatheusGgit
Copy link
Author

Oh, ok.
Thanks!

@GrahamCampbell
Copy link
Collaborator

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

No branches or pull requests

2 participants