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

2 years ago

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

17 Replies

2 years ago

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


2 years ago

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


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


2 years ago

Normal sqlx macro query validation


2 years ago

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


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


2 years ago

Oh


2 years ago

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


2 years ago

Ok I’ll see


2 years ago

soon ™️ (soon = at some point)


2 years ago


2 years ago

Wait how do I mark it as correct


2 years ago

you dont have perms


2 years ago

It’s my own stupid thread


2 years ago


2 years ago

you can't be trusted


2 years ago

Bro what


Loading...