R
Railway7mo ago
fvr1

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:
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 database
Jump to solution
4 Replies
Percy
Percy7mo ago
Project ID: N/A
Solution
Brody
Brody7mo ago
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 database
fvr1
fvr17mo ago
AHH ok, ok thanks!!
Brody
Brody7mo ago
no problem