Skip to content
Postgres instance is ready but PGHOST variable is empty
mohankrishna33
OP

2 years ago

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

Closed

28 Replies

mohankrishna33
OP

2 years ago

NA


2 years ago

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


mohankrishna33
OP

2 years ago

${{RAILWAY_PRIVATE_DOMAIN}}


mohankrishna33
OP

2 years ago

That's what i get when i click on edit


2 years ago

That's correct


mohankrishna33
OP

2 years ago

so the variable isn't visible?


2 years ago

You could SSH in and echo it to be sure


2 years ago

Not sure why it's not showing there


mohankrishna33
OP

2 years ago

ok i'll give it a try by using that


mohankrishna33
OP

2 years ago

fyi i haven't enabled private networking


2 years ago

What?


2 years ago

Is that even an option?


mohankrishna33
OP

2 years ago

i just corrected it


mohankrishna33
OP

2 years ago

is it neccessary to enable private networking


2 years ago

That’s not even a choice for me


2 years ago

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


mohankrishna33
OP

2 years ago

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


mohankrishna33
OP

2 years ago

i thought there would be another choice. my bad


2 years ago

Small delay is better than infinite delay


mohankrishna33
OP

2 years ago

haha


2 years ago

I don’t actually have that issue though


mohankrishna33
OP

2 years ago

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


2 years ago

Yep


2 years ago

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


mohankrishna33
OP

2 years ago

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


2 years ago

Public URL will be much slower for many reasons


2 years ago

Private URL is a direct path


2 years ago

Public literally has to exit and come back in


Welcome!

Sign in to your Railway account to join the conversation.

Loading...