Issue connecting to pg db after migration

After i migrated to the newer docker image db, my go services seem to be connecting to new private url fine, but my rust service is having some trouble. I'm not sure if I've just done something wrong but any help would be appreciated
No description
14 Replies
Percy
Percy12mo ago
Project ID: N/A
ionlytakeLs
ionlytakeLs12mo ago
0a60e333-aaf7-444b-bb0c-4d3a3e9ac57d
Brody
Brody12mo ago
are you using nixpacks to build the rust app?
ionlytakeLs
ionlytakeLs12mo ago
Yes
Brody
Brody12mo ago
can you add a 3 second sleep to the beginning of the start command?
ionlytakeLs
ionlytakeLs12mo ago
yea one sec lemme do that Hey sorry i had to step out for a few, but i tried putting in the sleep, using the public and private url and neither seem to be working
Brody
Brody12mo ago
how did you go about adding the sleep?
ionlytakeLs
ionlytakeLs12mo ago
i just added it to the start command like you said
Brody
Brody12mo ago
can you show me what you currently have for a start command?
ionlytakeLs
ionlytakeLs12mo ago
Yea this is what i have: sleep 3 && ./bin/auth-service
Brody
Brody12mo ago
try adding this service variable ENABLE_ALPINE_PRIVATE_NETWORKING=true
ionlytakeLs
ionlytakeLs12mo ago
ok its redeploying rn im rly not sure which worked bc in the same redeploy i just added an sslmode disable to the connection in the codebase but its working now!
ionlytakeLs
ionlytakeLs12mo ago
!!
No description
Brody
Brody12mo ago
awesome!!
Want results from more Discord servers?
Add your server