R
Railway•11mo ago
gr33nTHumB

Simple node.js app Deployment can't find the correct script

The app is run by node server.js or node bot.js, but the deployment step fails with Error: Cannot find module '/srv/app/server/server.js'
12 Replies
Percy
Percy•11mo ago
Project ID: 9a8ccdaa-0d00-40e4-823c-5199e84248cf
gr33nTHumB
gr33nTHumB•11mo ago
9a8ccdaa-0d00-40e4-823c-5199e84248cf
Fragly
Fragly•11mo ago
is node server.js your start command? in package.json?
gr33nTHumB
gr33nTHumB•11mo ago
it's not actually in package.json, but I added it as a custom start command
Fragly
Fragly•11mo ago
and you're 100% sure it's node server.js and not node server/server.js or something right?
gr33nTHumB
gr33nTHumB•11mo ago
I am. there is a previous version where it was in a server/server.js subfolder, but this app is a new repo with /server at the root
Brody
Brody•11mo ago
gr33nTHumB
gr33nTHumB•11mo ago
ahhhhh I think I know what it is it's detecting a Dockerfile and using that let me remove to test
Brody
Brody•11mo ago
yeah that would do it
gr33nTHumB
gr33nTHumB•11mo ago
that worked, thanks a lot 🙂
Brody
Brody•11mo ago
no problem!
Want results from more Discord servers?
Add your server