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

Can i change file name? #14

Closed
kamlesh62 opened this issue Sep 12, 2021 · 3 comments
Closed

Can i change file name? #14

kamlesh62 opened this issue Sep 12, 2021 · 3 comments

Comments

@kamlesh62
Copy link

kamlesh62 commented Sep 12, 2021

I have multiple env files .env .env.staging and so on

@uzzu
Copy link
Owner

uzzu commented Sep 15, 2021

This is currently not, but I think it's possible to add the feature.

One limitation is Gradle has no concept of staging, test, production, or local environments, so it is difficult to automatically load one of the .env files. (like next.js)

If you simply want to use a different file name, I will try to implement that.

@kamlesh62
Copy link
Author

Currently how i do it in my nodejs project is i pickup filename from environement variables
So i just set env files name before building

set ENVFILE=.env.staging && run node server
set ENVFILE=.env.production && npm command

This was referenced Sep 23, 2021
@uzzu
Copy link
Owner

uzzu commented Sep 23, 2021

Thanks for giving your use case! 😄

Changing .env file feature was released at 1.2.0.

If you have problems using it, please create new issue.

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