CLI error: getaddrinfo ENOTFOUND postgres.railway.internal
Hi! I have two environments (production and one made by a PR). When I do railway link to the branch environment and try to run a migration command from my terminal it says that it can't connect to the database. This do not happens when I run those commands in my cli for the production environment.
Is any setting that I'm missing to do so?
On the deploy script in the railway web app, the migrations are run and they work just fine. It's in my cli when they stop working... Any ideas?
Solution:Jump to solution
you cant access the
*.railway.internal
doamins from your local computer, wouldnt be much of a private network if you could, you would need to use the public address for the database4 Replies