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