Postgres instance is ready but PGHOST variable is empty
mohankrishna33
FREEOP

9 months ago

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

28 Replies

mohankrishna33
FREEOP

9 months ago

NA


samgordon
PRO

9 months ago

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


mohankrishna33
FREEOP

9 months ago

${{RAILWAYPRIVATEDOMAIN}}


mohankrishna33
FREEOP

9 months ago

That's what i get when i click on edit


samgordon
PRO

9 months ago

That's correct


mohankrishna33
FREEOP

9 months ago

so the variable isn't visible?


samgordon
PRO

9 months ago

You could SSH in and echo it to be sure


samgordon
PRO

9 months ago

Not sure why it's not showing there


mohankrishna33
FREEOP

9 months ago

ok i'll give it a try by using that


mohankrishna33
FREEOP

9 months ago

fyi i haven't enabled private networking


samgordon
PRO

9 months ago

What?


samgordon
PRO

9 months ago

Is that even an option?


mohankrishna33
FREEOP

9 months ago

i just corrected it


mohankrishna33
FREEOP

9 months ago

is it neccessary to enable private networking


samgordon
PRO

9 months ago

That’s not even a choice for me


samgordon
PRO

9 months ago

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


mohankrishna33
FREEOP

9 months ago

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


mohankrishna33
FREEOP

9 months ago

i thought there would be another choice. my bad


samgordon
PRO

9 months ago

Small delay is better than infinite delay


mohankrishna33
FREEOP

9 months ago

haha


samgordon
PRO

9 months ago

I don’t actually have that issue though


mohankrishna33
FREEOP

9 months ago

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


samgordon
PRO

9 months ago

Yep


samgordon
PRO

9 months ago

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


mohankrishna33
FREEOP

9 months ago

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


samgordon
PRO

9 months ago

Public URL will be much slower for many reasons


samgordon
PRO

9 months ago

Private URL is a direct path


samgordon
PRO

9 months ago

Public literally has to exit and come back in


Loading...