Railway server sleep even purchase Hobby plan

hey guys, I paid for Hobby plan and I was successful deploy my nodejs server on railway last night, and it was sleep this morning even with the pay plan. But I just checked it again at noon, when I opened the server on Railway, it told me " 404, YOU ARE LOST". Anyone experience with this before? please help
12 Replies
Percy
Percy9mo ago
Project ID: 9cb871d0-d9de-4630-84e1-b61614e384b6
kkng7097
kkng70979mo ago
project ID: 9cb871d0-d9de-4630-84e1-b61614e384b6
Brody
Brody9mo ago
so you get 404 from the railway domain for the service you deployed?
kkng7097
kkng70979mo ago
yes I am But for some reason, when I just open it again, it works fine now now I think I just wonder why the server sleep after few hour with no activity?
Brody
Brody9mo ago
that would be a code issue im afraid
kkng7097
kkng70979mo ago
hmm, I used NodeJS and Express for my code
kkng7097
kkng70979mo ago
have you exprience this before? would you mind to take a look at my repo? https://github.com/khoaguye/networker_be
GitHub
GitHub - khoaguye/networker_be
Contribute to khoaguye/networker_be development by creating an account on GitHub.
Medim
Medim9mo ago
All your DB creds are visible there my dude But other than that, I don't see any issue with ur code
kkng7097
kkng70979mo ago
thanks for take a look have you experience with server sleep after no acitivity in long hour?
Brody
Brody9mo ago
the deployments dont sleep
kkng7097
kkng70979mo ago
yeahh, that what it shows on my log in railway too that's why I wonder why it happen?
Brody
Brody9mo ago
can you show me where exactly you saw this 404 page