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
Project ID:
9a8ccdaa-0d00-40e4-823c-5199e84248cf
9a8ccdaa-0d00-40e4-823c-5199e84248cf
is
node server.js
your start command?
in package.json?it's not actually in package.json, but I added it as a custom start command
and you're 100% sure it's
node server.js
and not node server/server.js
or something right?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
send your build logs please https://bookmarklets.up.railway.app/log-downloader/
ahhhhh I think I know what it is
it's detecting a Dockerfile and using that
let me remove to test
yeah that would do it
that worked, thanks a lot 🙂
no problem!