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

.env seems to be ignored #92

Open
sfratini opened this issue Apr 14, 2022 · 0 comments
Open

.env seems to be ignored #92

sfratini opened this issue Apr 14, 2022 · 0 comments

Comments

@sfratini
Copy link

If I run the process like:

npx pgen exec ./database/models-template --target ./database/models
Then it asks me for username and password like it is ignoring the ENV file. I am using the exact same one as given in the example in the docs, with the added DB_PORT.

Node: 12.22.12
npm: 6.14.16
pg: 4.8.3

Even if I put them correctly, it says connection refused, so I assume it is just ignoring all parameters. Not sure if this is because my models are not in the root of the project. Also, this script is added into the package.json. I am also running mac.

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

1 participant