Hello, I have several errors when trying deploy a Node.js web service that aren’t occurring when I run locally. I have npm install and npm start, referring to “nodemon src/index.js”, as the build and start commands. I have my port number and MongoDB Mongo_URI as environmental variables. I am using node version 20.12.2.
The first error I get is a “throw err:” directly after it reads the Mongo URI.
Then I get an error saying it cannot find the file that holds the Express model I created for my data.
Then I get this error: “[nodemon] app crashed - waiting for file changes before starting…”
And the last error is: “Port scan timeout reached, no open ports detected. Bind your service to at least one port. If you don’t need to receive traffic on any port, create a background worker instead.”
I would really appreciate any help I can get, thank you.