"server:start:prod": "node dist/apps/server/main.js"
{ "$schema": "https://railway.app/railway.schema.json", "build": { "builder": "NIXPACKS", "buildCommand": "npm run server:build", "watchPatterns": [] }, "deploy": { "numReplicas": 1, "startCommand": "npm run server:start:prod", "restartPolicyType": "ON_FAILURE", "restartPolicyMaxRetries": 10 }}
"scripts": { ... "server:build": "nest build", "server:start:prod": "node dist/main.js", ... },
> [email protected] server:start:prod> node dist/main.jsnode:internal/modules/cjs/loader:988throw err;^Error: Cannot find module '/app/dist/main.js'at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15)at Function.Module._load (node:internal/modules/cjs/loader:833:27)at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)at node:internal/main/run_main_module:22:47 {code: 'MODULE_NOT_FOUND',requireStack: []}