Postgres instance is ready but PGHOST variable is empty
mohankrishna33
FREEOP

10 months ago

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

28 Replies

mohankrishna33
FREEOP

10 months ago

NA


10 months ago

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


mohankrishna33
FREEOP

10 months ago

${{RAILWAYPRIVATEDOMAIN}}


mohankrishna33
FREEOP

10 months ago

That's what i get when i click on edit


10 months ago

That's correct


mohankrishna33
FREEOP

10 months ago

so the variable isn't visible?


10 months ago

You could SSH in and echo it to be sure


10 months ago

Not sure why it's not showing there


mohankrishna33
FREEOP

10 months ago

ok i'll give it a try by using that


mohankrishna33
FREEOP

10 months ago

fyi i haven't enabled private networking


10 months ago

What?


10 months ago

Is that even an option?


mohankrishna33
FREEOP

10 months ago

i just corrected it


mohankrishna33
FREEOP

10 months ago

is it neccessary to enable private networking


10 months ago

That’s not even a choice for me


10 months ago

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


mohankrishna33
FREEOP

10 months ago

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


mohankrishna33
FREEOP

10 months ago

i thought there would be another choice. my bad


10 months ago

Small delay is better than infinite delay


mohankrishna33
FREEOP

10 months ago

haha


10 months ago

I don’t actually have that issue though


mohankrishna33
FREEOP

10 months ago

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


10 months ago

Yep


10 months ago

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


mohankrishna33
FREEOP

10 months ago

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


10 months ago

Public URL will be much slower for many reasons


10 months ago

Private URL is a direct path


10 months ago

Public literally has to exit and come back in


Loading...