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
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
a year ago
why are you building and migrating at the same step
a year ago
there's a pre deploy command for stuff like that
oh… whats its called in the package.json so I add it? you mean I should put the prisma generate in there yes?
a year ago
you define it in the service settings
ah yeah but I like to have everything in my package.json like build, start… isnt there one for the package.json?
a year ago
yeah but it's not right, you need better separation of concerns and pre deploy commands run in an isolated container
a year ago
bun has nothing to do with your orm
a year ago
or you mean "bun migrate" to run your package.json migrate script
a year ago
won't a railway.json work as well? https://docs.railway.com/guides/pre-deploy-command
anyways I can just add a script in my package.json called migrate and put the prisma generate in there, yes?