R
Railway•14mo 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•14mo ago
Project ID: 9a8ccdaa-0d00-40e4-823c-5199e84248cf
gr33nTHumB
gr33nTHumBOP•14mo ago
9a8ccdaa-0d00-40e4-823c-5199e84248cf
Fragly
Fragly•14mo ago
is node server.js your start command? in package.json?
gr33nTHumB
gr33nTHumBOP•14mo ago
it's not actually in package.json, but I added it as a custom start command
Fragly
Fragly•14mo ago
and you're 100% sure it's node server.js and not node server/server.js or something right?
gr33nTHumB
gr33nTHumBOP•14mo 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•14mo ago
gr33nTHumB
gr33nTHumBOP•14mo ago
ahhhhh I think I know what it is it's detecting a Dockerfile and using that let me remove to test
Brody
Brody•14mo ago
yeah that would do it
gr33nTHumB
gr33nTHumBOP•14mo ago
that worked, thanks a lot 🙂
Brody
Brody•14mo ago
no problem!
Want results from more Discord servers?
Add your server