Directus: I need to access the postgreSQL database deployed on railway with directus

I created a flow on directus that affected authentication on login. i need to delete the directus flow on database to access it again. how do i do that. How to connect to the PostgreSQL database
21 Replies
Percy
Percy11mo ago
Project ID: da2d5174-a73f-4a30-a3e8-8ec821a0cf73
somemartin
somemartinOP11mo ago
da2d5174-a73f-4a30-a3e8-8ec821a0cf73
Brody
Brody11mo ago
what template did you deploy directus from?
somemartin
somemartinOP11mo ago
Directus api template
Brody
Brody11mo ago
we dont have any templates by that exact name, can you please link the template
somemartin
somemartinOP11mo ago
"Directus" is the main name
somemartin
somemartinOP11mo ago
No description
somemartin
somemartinOP11mo ago
this one.
Brody
Brody11mo ago
please read its overview - https://railway.app/template/2fy758
somemartin
somemartinOP11mo ago
Sorry, I still don't know how I'll access it
Brody
Brody11mo ago
have you read the notes section of the overview?
somemartin
somemartinOP11mo ago
Yes, I'm new to it, researched it also but still dont get it.
Brody
Brody11mo ago
have you added the tcp proxy to the postgres service?
somemartin
somemartinOP11mo ago
Yes I added. I'm trying access the postgresql through railway cli. an error is appearing when im running psql >railway run psql >psql: error: connection to server at "monorail.proxy.rlwy.net" ([IP REDACTED]), port [port REDACTED] failed: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. I'm already linked to the postgres service
Brody
Brody11mo ago
can you please send me a screenshot of the public networking section?
somemartin
somemartinOP11mo ago
here
No description
Brody
Brody11mo ago
go ahead and redeploy the postgres deployment
No description
somemartin
somemartinOP11mo ago
I see had progress. the railway cli is asking for a password for my account. but my account is linked on github. logged in via github
Brody
Brody11mo ago
the cli is never going to ask for a password for railway, either way, use dbgate to connect to the database
somemartin
somemartinOP11mo ago
Thanks Brody. already connected
Brody
Brody11mo ago
awsome
Want results from more Discord servers?
Add your server