Issue with Node (Bootstrap) app. Getting timed out. Working fine locally!

Hi all, I am trying to deploy my node app, but failing to do so. I generally run it locally via npm run start in the base directory and it publishes the content from the dist directory.

Local Logs:

> startbootstrap-new-age@6.0.7 start
> npm run build && node scripts/start.js 

> startbootstrap-new-age@6.0.7 build
> npm run build:scss && npm run build:scripts && npm run build:assets

> startbootstrap-new-age@6.0.7 build:scss
> node scripts/build-scss.js

> startbootstrap-new-age@6.0.7 build:scripts
> node scripts/build-scripts.js

> startbootstrap-new-age@6.0.7 build:assets
> node scripts/build-assets.js 

[SB_BROWSER_SYNC] [Browsersync] Access URLs:
[SB_BROWSER_SYNC]  ----------------------------
[SB_BROWSER_SYNC]  Local: http://localhost:3000
[SB_BROWSER_SYNC]  ----------------------------
[SB_BROWSER_SYNC]     UI: http://localhost:3001
[SB_BROWSER_SYNC]  ----------------------------
[SB_BROWSER_SYNC] [Browsersync] Serving files from: /Users/itsknk/Documents/emass/startbootstrap-new-age/dist
[SB_BROWSER_SYNC] [Browsersync] Watching files...
[SB_WATCH] Loading........................ READY TO ROLL!
[SB_BROWSER_SYNC] [Browsersync] File event [change] : dist/css/styles.css

I then just navigate to localhost:3000 and it works fine.

Netlify Deploy Logs:

7:11:32 PM: Netlify Build                                                 
7:11:32 PM: ────────────────────────────────────────────────────────────────
7:11:32 PM: ​
7:11:32 PM: ❯ Version
7:11:32 PM:   @netlify/build 29.38.1
7:11:32 PM: ​
7:11:32 PM: ❯ Flags
7:11:32 PM:   baseRelDir: true
7:11:32 PM:   buildId: 660cba9d3fc24167ca481168
7:11:32 PM:   deployId: 660cba9d3fc24167ca48116a
7:11:32 PM: ​
7:11:32 PM: ❯ Current directory
7:11:32 PM:   /opt/build/repo
7:11:32 PM: ​
7:11:32 PM: ❯ Config file
7:11:32 PM:   No config file was defined: using default values.
7:11:32 PM: ​
7:11:32 PM: ❯ Context
7:11:32 PM:   production
7:11:32 PM: ​
7:11:32 PM: Build command from Netlify app                                
7:11:32 PM: ────────────────────────────────────────────────────────────────
7:11:32 PM: ​
7:11:32 PM: $ npm run start
7:11:32 PM: > startbootstrap-new-age@6.0.7 start
7:11:32 PM: > npm run build && node scripts/start.js --open=false
7:11:33 PM: > startbootstrap-new-age@6.0.7 build
7:11:33 PM: > npm run build:scss && npm run build:scripts && npm run build:assets
7:11:33 PM: > startbootstrap-new-age@6.0.7 build:scss
7:11:33 PM: > node scripts/build-scss.js
7:11:35 PM: > startbootstrap-new-age@6.0.7 build:scripts
7:11:35 PM: > node scripts/build-scripts.js
7:11:36 PM: > startbootstrap-new-age@6.0.7 build:assets
7:11:36 PM: > node scripts/build-assets.js --open=false
7:11:36 PM: [SB_BROWSER_SYNC] [Browsersync] Access URLs:
7:11:36 PM: [SB_BROWSER_SYNC]  ----------------------------
7:11:36 PM: [SB_BROWSER_SYNC]  Local: http://localhost:3000
7:11:36 PM: [SB_BROWSER_SYNC]  ----------------------------
7:11:36 PM: [SB_BROWSER_SYNC]     UI: http://localhost:3001
7:11:36 PM: [SB_BROWSER_SYNC]  ----------------------------
7:11:36 PM: [SB_BROWSER_SYNC] [Browsersync] Serving files from: /opt/build/repo/dist
7:11:36 PM: [SB_BROWSER_SYNC] [Browsersync] Watching files...
7:11:38 PM: [SB_WATCH] Loading........................ READY TO ROLL!
7:11:42 PM: [SB_BROWSER_SYNC] [Browsersync] File event [change] : dist/css/styles.css
7:29:27 PM: Failed during stage "building site": Command did not finish within the time limit
7:29:27 PM: Execution timed out after 17m58.047595216s
7:29:27 PM: Failing build: Failed to build site
7:29:28 PM: Finished processing build request in 18m37.027s

Any help is appreciated.

It is not possible to start a node instance on Netlify. You must build something and the static assets are deployed. Read:

1 Like