Waiting for service to deploy before another one starts deploying
Anonymous
TRIALOP

2 years ago

I have 3 services, 1 is an nginx server, the other 2 are nextjs servers. Right now, the nginx server deploys relatively quicker than the nextjs servers and because of that, i am unable to access routes on any of my nextjs servers with the error:
*7 upstream timed out (110: Operation timed out) while connecting to upstream
How can I wait for my nextjs servers to deploy before depolying my nginx server?

10 Replies

Anonymous
TRIALOP

2 years ago

N/A


2 years ago

railway does not support this natively unfortunately


Anonymous
TRIALOP

2 years ago

any other solutions?


Anonymous
TRIALOP

2 years ago

something i could do in my code?


2 years ago

you would have to implement something yourself, yeah


Anonymous
TRIALOP

2 years ago

surely this is a common request, do you know of anyonne who has implemented this already?


Anonymous
TRIALOP

2 years ago

maybe i could add a sleep for the estimated amount of time it takes for the nextjs servers to deploy?


2 years ago

I haven't seen anything besides using nc to wait for the database, but that's not exactly applicable to you


2 years ago

a sleep would work yes


Anonymous
TRIALOP

2 years ago

sounds good i'll try that


Loading...