I’m trying to deploy an app with expressJS its a simple app this is the code: VC8ve5rxgT | SourceBin
But its continuously stuck on building even though in the logs it shows its ran and the port is running, the page name is spontaneous-bavarois-c5c5a8 if thats relevant
10:11:05 PM: Build command from Netlify app
10:11:05 PM: ────────────────────────────────────────────────────────────────
10:11:05 PM: $ npm run server
10:11:06 PM: > firstname.lastname@example.org server
10:11:06 PM: > node server.js
10:11:06 PM: App on port 3000
this is the the fail message btw:
10:29:13 PM: Failed during stage “building site”: Command did not finish within the time limit
10:29:13 PM: Execution timed out after 18m10.001298859s
10:29:13 PM: Failing build: Failed to build site
10:29:13 PM: Finished processing build request in 18m20.01s
@Emerald-cmd You’re attempting to run a server on port 3000.
This isn’t how you work with Netlify.
See this post for more detail:
You’ve not indicated what you’re working with, but if it has a Build command then you should use that instead.
You want to run a build that produces output, and set your Publish directory in Netlify so that the right files are deployed and served for you.