Build deploy failed
magicmike123
HOBBYOP

2 years ago

I am trying to build following the command of the framework Im using right now and I get this error, no idea what the error is

Closed

27 Replies

magicmike123
HOBBYOP

2 years ago

20b311e9-9f30-40a4-bbc2-2d5543030462


magicmike123
HOBBYOP

2 years ago

I wonder if its because the 2 commands are executing at once, is there a way to separate them maybe so railway understands they are like, different things? the bun build and the prisma generate


magicmike123
HOBBYOP

2 years ago

ah mb its with && i think


magicmike123
HOBBYOP

2 years ago

nvm fixed now


magicmike123
HOBBYOP

2 years ago

👍


2 years ago

why are you building and migrating at the same step


magicmike123
HOBBYOP

2 years ago

wait am I not supposed to do that? idk


magicmike123
HOBBYOP

2 years ago

Im new to this ORM


2 years ago

there's a pre deploy command for stuff like that


magicmike123
HOBBYOP

2 years ago

it works now tho



magicmike123
HOBBYOP

2 years ago

oh... whats its called in the package.json so I add it? you mean I should put the prisma generate in there yes?


magicmike123
HOBBYOP

2 years ago

ah


2 years ago

you define it in the service settings


magicmike123
HOBBYOP

2 years ago

ah yeah but I like to have everything in my package.json like build, start... isnt there one for the package.json?


magicmike123
HOBBYOP

2 years ago

I see on the link they seem to use migrate


2 years ago

yeah but it's not right, you need better separation of concerns and pre deploy commands run in an isolated container


magicmike123
HOBBYOP

2 years ago

like bun migrate I assume it would be with bun


magicmike123
HOBBYOP

2 years ago

ah


2 years ago

bun has nothing to do with your orm


magicmike123
HOBBYOP

2 years ago

yeah I mean the migrate command


2 years ago

or you mean "bun migrate" to run your package.json migrate script


magicmike123
HOBBYOP

2 years ago

yes 🙂


2 years ago

won't a railway.json work as well? https://docs.railway.com/guides/pre-deploy-command


magicmike123
HOBBYOP

2 years ago

Im used to package.json I rather dont change it


magicmike123
HOBBYOP

2 years ago

anyways I can just add a script in my package.json called migrate and put the prisma generate in there, yes?


magicmike123
HOBBYOP

2 years ago

and doesnt matter if i execute that script with npm or bun I know


Welcome!

Sign in to your Railway account to join the conversation.

Loading...