Old Heroku website keeps stuck at Building phase during deployment

Hi everyone,

Currently I am trying to deploy a node.js web app which used to be hosted on Heroku. For this project I also used MongoDB.

Now I have tried to deploy my website but for the building it keeps saying “In progress”.

This is the building log:

Building log

11:36:29 PM: Netlify Build
11:36:29 PM: ────────────────────────────────────────────────────────────────
11:36:29 PM: ​
11:36:29 PM: ❯ Version
11:36:29 PM: @netlify/build 29.12.1
11:36:29 PM: ​
11:36:29 PM: ❯ Flags
11:36:29 PM: baseRelDir: true
11:36:29 PM: buildId: 6481e75854aa8300cee7f727
11:36:29 PM: deployId: 6481e75854aa8300cee7f729
11:36:29 PM: ​
11:36:29 PM: ❯ Current directory
11:36:29 PM: /opt/build/repo
11:36:29 PM: ​
11:36:29 PM: ❯ Config file
11:36:29 PM: No config file was defined: using default values.
11:36:29 PM: ​
11:36:29 PM: ❯ Context
11:36:29 PM: production
11:36:29 PM: ​
11:36:29 PM: Build command from Netlify app
11:36:29 PM: ────────────────────────────────────────────────────────────────
11:36:29 PM: ​
11:36:29 PM: $ npm run build
11:36:29 PM: > pt_matching_app@1.0.0 build
11:36:29 PM: > node server.js
11:36:29 PM: Live on http://localhost:8000
11:36:29 PM: Error: querySrv ENOTFOUND _mongodb._tcp.destinations.pnpaq.mongodb.net
11:36:29 PM: at QueryReqWrap.onresolve [as oncomplete] (node:dns:279:19) {
11:36:29 PM: errno: undefined,
11:36:29 PM: code: ‘ENOTFOUND’,
11:36:29 PM: syscall: ‘querySrv’,
11:36:29 PM: hostname: ‘_mongodb._tcp.destinations.pnpaq.mongodb.net’
11:36:29 PM: }
11:36:29 PM: Connected to MongoDB!

My website: https://trivatch.netlify.app/
The Github repositories which I deploy from: GitHub - cheunyinz/pt_matching_app

Does anyone know why it keeps saying 'In progress" for a very long time for the building phase. Does it has to do with the error I have in the building log?

Thank you in advanced!

Kind regards,

Cheun Yin

@cyz It will be because your npm run build script executes node server.js.

Netlify and Heroku aren’t the same, and you cannot run a “server” with Netlify.

See:

The reason it is “in progress” for a very long time during the build phase is because you aren’t building anything, you’re starting a server which then runs until the maximum execution time is reached and it turns off.