deployment fails Node JS and Typescript
I am new to railway. could you help me why deployment fails for me? I added custom start command
npm run watch
but it doesn't take it. please see the attach screen shots. Appreciate any help. thanks
Project id - 222e0fcf-5798-449d-93b1-caefdc077ef832 Replies
Project ID:
222e0fcf-5798-449d-93b1-caefdc077ef8
The issue is likely related to the wrong version of the TSC package being installed. It is recommended to remove "tsc": "^2.0.4" from the dependencies and use "typescript": "4.9.5" instead.
⚠️ experimental feature
using typescript version - "typescript": "^4.4.2"
i am not using tsc
Does your app still crash without using nodemon? You shouldn't be using nodemon in production
Remove the custom start command from the service settings
it fails without nodemon as well
Does it give any useful errors when it fails without nodemon?
let me try again
Also, are you on the trial plan?
getting this
?
monthly subscription just upgraded
Ah okay because I was about to say this kinda looked like an out of memory issue
should i redeploy since i just upgraded?
Oh you JUST upgraded, then yes
Though I'm not sure how fast railways systems will switch you over to dev hardware
run this project locally, how much ram does it use?
that works!
not much. i suppose. i will be the one pretty much using it for now
Well it must have been using more than 512mb
Or approaching it to be killed
yes looks like it
Ah yes memory spikes
oom
Well all is good now
oom indeed
i think i can figure this out. thanks
Is it still getting killed?
not anymore
Then you're good, as long as the memory usage eventually comes back down after a spike
got it. I am new to this. is there a way i can scale up the instances?
You think your app will need more resources than 8 vCPU and 8gb of ram?
not for now
You can always upgrade to the teams plan in the future
Team plans have access to 32 vCPU and 32gb of ram
got it can we run multiple instances?
Yes but you will have to handle the load balancing yourself with cloudflare / caddy / nginx
ok
got it thanks
Railway native horizontal scaling with load balancing is in progress though