Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hey everyone. I’m trying to deploy my application but nothing seems to work. I’ve tried the example repository and changed the path to ./bin/www/dist/server.js, but that doesn’t seem to work too.
here are my scripts:
"scripts": {
"start": "NODE_ENV=production node ./dist/server.js",
"dev": "nodemon server.js --exec babel-node",
"build": "babel server.js -d dist",
"build:digitalocean": "npm install --production=false && npm run build && npm ci && npm run start"
},
And here are the logs
[2024-03-07 10:24:22]
[2024-03-07 10:24:22] > server@1.0.0 start
[2024-03-07 10:24:22] > NODE_ENV=production node ./dist/server.js
[2024-03-07 10:24:22]
[2024-03-07 10:24:23] node:internal/modules/cjs/loader:1147
[2024-03-07 10:24:23] throw err;
[2024-03-07 10:24:23] ^
[2024-03-07 10:24:23]
[2024-03-07 10:24:23] Error: Cannot find module '/workspace/dist/server.js'
[2024-03-07 10:24:23] at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
[2024-03-07 10:24:23] at Module._load (node:internal/modules/cjs/loader:985:27)
[2024-03-07 10:24:23] at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
[2024-03-07 10:24:23] at node:internal/main/run_main_module:28:49 {
[2024-03-07 10:24:23] code: 'MODULE_NOT_FOUND',
[2024-03-07 10:24:23] requireStack: []
[2024-03-07 10:24:23] }
[2024-03-07 10:24:23]
[2024-03-07 10:24:23] Node.js v20.10.0
[2024-03-07 10:24:16]
[2024-03-07 10:24:16] > server@1.0.0 start
[2024-03-07 10:24:16] > NODE_ENV=production node ./dist/server.js
[2024-03-07 10:24:16]
[2024-03-07 10:24:16] node:internal/modules/cjs/loader:1147
[2024-03-07 10:24:16] throw err;
[2024-03-07 10:24:16] ^
[2024-03-07 10:24:16]
[2024-03-07 10:24:16] Error: Cannot find module '/workspace/dist/server.js'
[2024-03-07 10:24:16] at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
[2024-03-07 10:24:16] at Module._load (node:internal/modules/cjs/loader:985:27)
[2024-03-07 10:24:16] at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
[2024-03-07 10:24:16] at node:internal/main/run_main_module:28:49 {
[2024-03-07 10:24:16] code: 'MODULE_NOT_FOUND',
[2024-03-07 10:24:16] requireStack: []
[2024-03-07 10:24:16] }
[2024-03-07 10:24:16]
[2024-03-07 10:24:16] Node.js v20.10.0
[]
dolphinnn
Vaishnavi Vundyala
016512ea60864da0867e5280f293de
Peter Monadjemi
Prince7hakur
devjk1
fc9acbfbc3124cbf8df28a1c5c5cdb
ab871885551143798f41908c709271
gouskova
Saivion Services
Marin
182d09356ab94d3893ddfaca4f0270