Web app runs fine with PostgreSQL public url as Shared Variable but crashes when using private url
furstukin
FREEOP

a year ago

I have a web blog created with Flask, Jinja, Python that I can get to run fine locally using the PostgreSQL public URL, and it also runs fine on Railway when I set the Shared Variable for database URL to the public URL.

But when I try to change the Shared Variable to the private URL the app crashes immediately stating it can't resolve the string "". In other words, it can't resolve the private URL and returns an empty string. Am I missing something obvious here?

Solved

2 Replies

furstukin
FREEOP

a year ago

I actually figured it out that if I use the link to make a connection to a database in the app directly rather than importing it as a Shared Variable it works. But can anyone tell me why that is?


itsrems
EMPLOYEE

a year ago

heya, seems your reference env var is working fine now. lmk if we can help !


Status changed to Awaiting User Response Railway 11 months ago


Status changed to Solved itsrems 11 months ago


Loading...