Server Slow To Startup on Railway

I have a node server deployed on railway and whenever my frontend makes calls to it the first request is always a failure and then if I refresh and try again then it works. I'm new to web development so I don't exactly know what's causing this but maybe the server is just slow to start up? If anyone knows, what are my options to fix this issue?
6 Replies
Percy
Percy2y ago
Project ID: N/A
Brody
Brody2y ago
use a healthcheck so that railway knows when to actually switch over to the new deployment
angelplusultra
Sorry, could you elaborate? I
angelplusultra
I looked into the healthcheck feature but Im unsure if that's gonna help because just switching to another branch wont make the server any faster
Brody
Brody2y ago
please read
Want results from more Discord servers?
Add your server