Deploying to Railway

I am adding prisma orm to my elysia js project. I was wondering if i needed to modify my railway custom start command to run the migration before starting the elysia app, or if railway should defaultly handle this. I tried searching before making a post but couldnt find any info of people adding this to their deployment pipeline. every tutorial had people manually doing the migration
1 Reply
SimplyEmu
SimplyEmu6mo ago
I am getting this error when trying to deploy there
error: Could not resolve: ".prisma/client/index-browser". Maybe you need to "bun install"?

#12 0.415 const prisma = require('.prisma/client/index-browser')

#12 0.415 ^

#12 0.415 /app/node_modules/@prisma/client/index-browser.js:1:24 23



#12 0.424 error: script "build" exited with code 1 (SIGHUP)

#12 ERROR: process "/bin/bash -ol pipefail -c bun run build" did not complete successfully: exit code: 1

-----

> [stage-0 8/10] RUN --mount=type=cache,id=s/41fc0ed0-fdbf-449f-b6e1-7f89b813d8d4-node_modules/cache,target=/app/node_modules/.cache bun run build:

0.307 $ bun build src/index.ts

0.415

0.415

0.415 error: Could not resolve: ".prisma/client/index-browser". Maybe you need to "bun install"?

0.415 const prisma = require('.prisma/client/index-browser')

0.415 ^

0.415 /app/node_modules/@prisma/client/index-browser.js:1:24 23

0.424 error: script "build" exited with code 1 (SIGHUP)
error: Could not resolve: ".prisma/client/index-browser". Maybe you need to "bun install"?

#12 0.415 const prisma = require('.prisma/client/index-browser')

#12 0.415 ^

#12 0.415 /app/node_modules/@prisma/client/index-browser.js:1:24 23



#12 0.424 error: script "build" exited with code 1 (SIGHUP)

#12 ERROR: process "/bin/bash -ol pipefail -c bun run build" did not complete successfully: exit code: 1

-----

> [stage-0 8/10] RUN --mount=type=cache,id=s/41fc0ed0-fdbf-449f-b6e1-7f89b813d8d4-node_modules/cache,target=/app/node_modules/.cache bun run build:

0.307 $ bun build src/index.ts

0.415

0.415

0.415 error: Could not resolve: ".prisma/client/index-browser". Maybe you need to "bun install"?

0.415 const prisma = require('.prisma/client/index-browser')

0.415 ^

0.415 /app/node_modules/@prisma/client/index-browser.js:1:24 23

0.424 error: script "build" exited with code 1 (SIGHUP)
Want results from more Discord servers?
Add your server