[Rust] [Sqlx] [Networking] Using DATABASE_URL=${DATABASE_PRIVATE_URL} in Railway at build time fails
alexng353
PROOP

2 years ago

Changing to DATABASEURL=${DATABASEURL} fixes it. I believe it has something to do with resolving names inside the build container.

0 Replies

alexng353
PROOP

2 years ago

e421520a-200c-4fe1-843f-c8308f0813fc


milo
MODERATOR

2 years ago

can i ask what you are doing at buildtime with sqlx @alex


brody
EMPLOYEE

2 years ago

I'd like to note that the private network is not available during build, I assume sqlx is connecting to the database for some reason or another during build. I shall leave the rest to milo


alexng353
PROOP

2 years ago

Normal sqlx macro query validation


alexng353
PROOP

2 years ago

If pn isn’t available at build then that’s fine


milo
MODERATOR

2 years ago

I recommend not using the macros, im pretty sure they are vulnerable to some sort of attack, i would just use the functions


alexng353
PROOP

2 years ago

Oh


milo
MODERATOR

2 years ago

that’s what i do atleast, and im happy w it


alexng353
PROOP

2 years ago

Ok I’ll see


brody
EMPLOYEE

2 years ago

soon ™️ (soon = at some point)


alexng353
PROOP

2 years ago


alexng353
PROOP

2 years ago

Wait how do I mark it as correct


brody
EMPLOYEE

2 years ago

you dont have perms


alexng353
PROOP

2 years ago

It’s my own stupid thread


alexng353
PROOP

2 years ago


brody
EMPLOYEE

2 years ago

you can't be trusted


alexng353
PROOP

2 years ago

Bro what


Loading...