#v3: Unable to create first migration - Postgres beta.56

7 messages · Page 1 of 1 (latest)

shut parrot
#

I am trying to create the first migration in order to deploy my project to my distant server but I can't get it to work.
I followed the docs but cant get it to work properly...

karmic roverBOT
shut parrot
#

Basically I'm using Docker and I can work on the admin without any problem, therefore when I want to create a migration Payload can't connect to my DB when it's exactly the same DATABASE_URI so I guess there is something that differs in the connection method that Payload uses to connect to the DB when it tries to create migrations and when it's in the admin.

karmic roverBOT
simple terrace
#

@shut parrot Do you run the migration:create command inside the docker containers. For example like this:
docker compose exec CONTAINER_NAME npm run payload migrate:create

#

Ah you solved the problem yourself allready

shut parrot
#

I did but my problem was my docker port config