Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Support env.local, et al. or support --envfile CLI option #274

Closed
hparra opened this issue Feb 22, 2022 · 5 comments
Closed

Support env.local, et al. or support --envfile CLI option #274

hparra opened this issue Feb 22, 2022 · 5 comments

Comments

@hparra
Copy link

hparra commented Feb 22, 2022

dbmate does not support additional .env files, e.g. .env.local or .env.development.local due to joho/godotenv#10

Possible solutions of varying completeness:

@msdrigg
Copy link

msdrigg commented Apr 2, 2022

I also would like this issue supported

@amacneil
Copy link
Owner

amacneil commented Apr 2, 2022

Happy to accept a PR for this, I think it would only be a few lines of code

@msdrigg
Copy link

msdrigg commented Apr 3, 2022

I haven't written any go code, but if this is still sitting open in a week or two, I may give it a try.

Also, if anyone does write a pr, I would definitely prefer the solution of

Add --envfile option which specifies file for godotenv.Load()

@jahilliard
Copy link

I'd love this too.

@jahilliard
Copy link

Looks like something like godotenv.Load(".env.local") is supported.

Repository owner locked and limited conversation to collaborators Dec 19, 2022
@amacneil amacneil converted this issue into discussion #354 Dec 19, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants