Waiting for service to deploy before another one starts deploying
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:
How can I wait for my nextjs servers to deploy before depolying my nginx server?
8 Replies
Project ID:
N/A
N/A
railway does not support this natively unfortunately
any other solutions?
something i could do in my code?
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?
I haven't seen anything besides using
nc
to wait for the database, but that's not exactly applicable to you
a sleep would work yessounds good i'll try that