Hello, I am having a bit of trouble migrating my web app from Heroku to Render. It’s a fairly small app with little to no traffic (currently working on it).
But I still get an error when deploying. It’s made with Node.js and I’m using MongoDB if that matters (I am still a bit of a beginner when it comes to this).
I did do some research and some others think it could be the scripts in the package.json, of which here is how it is in the file:
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node app.js"
}
It seems your project is only using Node, so you may find you can remove Docker complications by deploying to our Node Native Environment. You would create a new Web Service, selecting Node as the environment and set the Build Command (e.g. npm install) and the Start Command (e.g. npm start).
It’s also advisable to set your Node version to match the one you developed on, which can be done in various ways. Specifying a Node Version