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
2 years ago
railway does not support this natively unfortunately
2 years ago
you would have to implement something yourself, yeah
surely this is a common request, do you know of anyonne who has implemented this already?
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