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
Percy13mo ago
Project ID: N/A
ionlytakeLs
ionlytakeLsOP13mo ago
0a60e333-aaf7-444b-bb0c-4d3a3e9ac57d
Brody
Brody13mo ago
are you using nixpacks to build the rust app?
ionlytakeLs
ionlytakeLsOP13mo ago
Yes
Brody
Brody13mo ago
can you add a 3 second sleep to the beginning of the start command?
ionlytakeLs
ionlytakeLsOP13mo 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
Brody13mo ago
how did you go about adding the sleep?
ionlytakeLs
ionlytakeLsOP13mo ago
i just added it to the start command like you said
Brody
Brody13mo ago
can you show me what you currently have for a start command?
ionlytakeLs
ionlytakeLsOP13mo ago
Yea this is what i have: sleep 3 && ./bin/auth-service
Brody
Brody13mo ago
try adding this service variable ENABLE_ALPINE_PRIVATE_NETWORKING=true
ionlytakeLs
ionlytakeLsOP13mo 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
ionlytakeLsOP13mo ago
!!
No description
Brody
Brody13mo ago
awesome!!
Want results from more Discord servers?
Add your server