Postgres instance is ready but PGHOST variable is empty
mohankrishna33
FREEOP

a year ago

Trying to connect to my Django app with postgres and have PGHOST variable set to empty

28 Replies

mohankrishna33
FREEOP

a year ago

NA


a year ago

Is it actually set to empty? What shows up when you click edit?


mohankrishna33
FREEOP

a year ago

${{RAILWAY_PRIVATE_DOMAIN}}


mohankrishna33
FREEOP

a year ago

That's what i get when i click on edit


a year ago

That's correct


mohankrishna33
FREEOP

a year ago

so the variable isn't visible?


a year ago

You could SSH in and echo it to be sure


a year ago

Not sure why it's not showing there


mohankrishna33
FREEOP

a year ago

ok i'll give it a try by using that


mohankrishna33
FREEOP

a year ago

fyi i haven't enabled private networking


a year ago

What?


a year ago

Is that even an option?


mohankrishna33
FREEOP

a year ago

i just corrected it


mohankrishna33
FREEOP

a year ago

is it neccessary to enable private networking


a year ago

That’s not even a choice for me


a year ago

Well yeah, without it being connected to the private network nothing internal can connect to it


mohankrishna33
FREEOP

a year ago

ohh i was worried with "a small delay (<100ms)" message when i tried to enable private networking


mohankrishna33
FREEOP

a year ago

i thought there would be another choice. my bad


a year ago

Small delay is better than infinite delay


mohankrishna33
FREEOP

a year ago

haha


a year ago

I don’t actually have that issue though


mohankrishna33
FREEOP

a year ago

so that's the only way to connect my django_app to postgres right?


a year ago

Yep


a year ago

That’s the only way you’d ever want to


mohankrishna33
FREEOP

a year ago

the public URL will cause my pockets to drain and slow too


a year ago

Public URL will be much slower for many reasons


a year ago

Private URL is a direct path


a year ago

Public literally has to exit and come back in


Welcome!

Sign in to your Railway account to join the conversation.

Loading...