Railway cli not connecting to db
matteyahmed
HOBBYOP
2 years ago
when i try to connect this error ends up in my terminal:
railway run python manage.py createsuperuser
this Error:
` conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: could not translate host name "meticulous-empathy.railway.internal" to address: No such host is known.`
2 Replies
2 years ago
When running locally you need to connect to the database via the public host and port.
matteyahmed
HOBBYOP
2 years ago
thanks.
Status changed to Solved brody • over 1 year ago