Deploying node js application in netlify

I am using GitHub for deploying to netlify but don’t know what is the command to give for build currently given npm start. in package JSON start command is node app.js. When I deploy it gets stuck at connected to DB and doesn’t proceed as in local computer it works and the terminal will be full time running but when deploying it got stuck there and not showing build succeeded.

Hi @aswanthv2, you won’t be able to run a node server on Netlify. Nor would you be able to host a database directly on Netlify. Being a JAMstack service, you can host your frontend (html, css, javascript only) on Netlify. If you need to find another solution if you need to run a full server and database.