Express instance is taking time for warming up

Hi There, I am having an issue with my Express JS server on Railway app. The server is taking a long time to warm up, and it is not available to users until it has warmed up. This is causing a problem because users are not able to access my app when they first try to visit it. I have checked my code, and I do not believe that the problem is with my code. I have also checked the Railway app documentation, and I do not see any information about how to fix this issue. I would appreciate it if you could help me troubleshoot this issue. I am available to chat on Discord at siddhesh_shinde. Thank you for your help.
4 Replies
Percy
Percy16mo ago
Project ID: ef355923-4b0c-4671-a6c5-0e1e588c66b5
siddhesh_shinde
siddhesh_shindeOP16mo ago
ef355923-4b0c-4671-a6c5-0e1e588c66b5
Adam
Adam16mo ago
create a healthcheck in your code and tell Railway where it is in the service settings. New deployments won’t be swapped over until the healthcheck passes
Want results from more Discord servers?
Add your server