Build deploy failed
magicmike123
HOBBYOP

a year 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

27 Replies

magicmike123
HOBBYOP

a year ago

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


magicmike123
HOBBYOP

a year 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

a year ago

ah mb its with && i think


magicmike123
HOBBYOP

a year ago

nvm fixed now


magicmike123
HOBBYOP

a year ago

👍


a year ago

why are you building and migrating at the same step


magicmike123
HOBBYOP

a year ago

wait am I not supposed to do that? idk


magicmike123
HOBBYOP

a year ago

Im new to this ORM


a year ago

there's a pre deploy command for stuff like that


magicmike123
HOBBYOP

a year ago

it works now tho



magicmike123
HOBBYOP

a year 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

a year ago

ah


a year ago

you define it in the service settings


magicmike123
HOBBYOP

a year 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

a year ago

I see on the link they seem to use migrate


a year ago

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


magicmike123
HOBBYOP

a year ago

like bun migrate I assume it would be with bun


magicmike123
HOBBYOP

a year ago

ah


a year ago

bun has nothing to do with your orm


magicmike123
HOBBYOP

a year ago

yeah I mean the migrate command


a year ago

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


magicmike123
HOBBYOP

a year ago

yes 🙂


a year ago

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


magicmike123
HOBBYOP

a year ago

Im used to package.json I rather dont change it


magicmike123
HOBBYOP

a year ago

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


magicmike123
HOBBYOP

a year ago

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


Loading...