Skip to content

.env seems to be ignored  #92

Description

@sfratini

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions