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
14 Replies
Project ID:
N/A
0a60e333-aaf7-444b-bb0c-4d3a3e9ac57d
are you using nixpacks to build the rust app?
Yes
can you add a 3 second sleep to the beginning of the start command?
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
how did you go about adding the sleep?
i just added it to the start command like you said
can you show me what you currently have for a start command?
Yea this is what i have: sleep 3 && ./bin/auth-service
try adding this service variable
ENABLE_ALPINE_PRIVATE_NETWORKING=true
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!
!!
awesome!!