R
Railway11mo ago
YJ ㊫

How do we handle nodejs app crashes with Railway ?

Just trying to fix this issue. I think I have to remove nodemon from the general dependencies and add them to dev dependencies.
No description
Solution:
I can't believe that worked nodemon should work in prod ( definitally not recommended though ) oh well, if it works it works...
Jump to solution
20 Replies
Percy
Percy11mo ago
Project ID: 2857c8f8-a68c-485d-98fa-3a2df426f138
YJ ㊫
YJ ㊫11mo ago
2857c8f8-a68c-485d-98fa-3a2df426f138
Fragly
Fragly11mo ago
why does it crash? is that all the logs? from that first line, it kinda gives me the impression that something is not compatible with the current version of nodejs just a hunch though, we can make sure if you send all the logs
YJ ㊫
YJ ㊫11mo ago
hey sorry I had to remove nodemon from script like you said
Fragly
Fragly11mo ago
that fixed it?? :o
YJ ㊫
YJ ㊫11mo ago
I removed it and tried again
No description
YJ ㊫
YJ ㊫11mo ago
yeah lol thank you! Sorry for wasting your time
Solution
Fragly
Fragly11mo ago
I can't believe that worked nodemon should work in prod ( definitally not recommended though ) oh well, if it works it works
YJ ㊫
YJ ㊫11mo ago
I havent thought about optimizing anything for prod
YJ ㊫
YJ ㊫11mo ago
before i only had 1 start
No description
YJ ㊫
YJ ㊫11mo ago
now I have start-dev and start
Fragly
Fragly11mo ago
yea, that's perfect
YJ ㊫
YJ ㊫11mo ago
Thank you!
Fragly
Fragly11mo ago
out of curiosity, what's the point of prestart? why not just run build directly? ( btw railway auto runs build for you )
YJ ㊫
YJ ㊫11mo ago
was using chatgpt no point lol 😂
Want results from more Discord servers?
Add your server