You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @GHCMelo,
I'm not 💯 sure, but I just searched a bit around and e.g. https://hub.docker.com/_/postgres does not show me POSTGRES_HOST and POSTGRES_PORT
Maybe these are not supported environment variables at all (out of the box)?
But with the right dotenv you maybe could achieve this by using expansions like
I'm getting the following error:
could not connect to postgres: error: no PostgreSQL user name specified in startup packet
When I use the following command:
node-pg-migrate up --envPath ./.env.local -m infra/migrations/
My .env.local file:
POSTGRES_USER=local_user
POSTGRES_PASSWORD=local_password
POSTGRES_DB=controle_de_gastos
POSTGRES_HOST=localhost
POSTGRES_PORT=54320
DATABASE_URL=postgres://local_user:local_password@localhost:54320/controle_de_gastos
I tried to connect to my database using DATABASE_URL string and I got success.
The text was updated successfully, but these errors were encountered: