Private network - cannot connect to postgres
the custom start command:
pnpx prisma migrate deploy
Solution:Jump to solution
that does help, for alpine based images you'd want to set a
ENABLE_ALPINE_PRIVATE_NETWORKING
service variable to true
context: https://docs.railway.app/guides/private-networking#workaround-for-alpine-based-images...15 Replies
Project ID:
773fe5a2-1441-4258-a034-523d5ff7a5d6
773fe5a2-1441-4258-a034-523d5ff7a5d6
already triple check the connection string, and it's the same result
Could you try adding a 3 second sleep in your custom start command?
how do you do it?
alright
let me try it
doesn't do anything, seems like it's execute the
sleep 3
then not running the next commandi actually tried this for experiment
the output only show "test" and nothing else
that is baffling
the image is based on
node:18-alpine3.19
not sure if it's helpSolution
that does help, for alpine based images you'd want to set a
ENABLE_ALPINE_PRIVATE_NETWORKING
service variable to true
context: https://docs.railway.app/guides/private-networking#workaround-for-alpine-based-imagesalright let me try
wow it's working!
thanks a lot @Fragly !
Awesome, I'm glad I could help!