Error in deploying my turborepo to railway
waliaharsh74
FREEOP

9 months ago

My turborepo contains
/apps/http-backend
/apps/ws-backend

/apps/web
and there is common packages which is used all these apps
/packages/common

/packages/db

i'm trying to deploy them one by one as service and package manger is 'pnpm'
and i don't know how to do that and tried several methods

$10 Bounty

5 Replies

9 months ago

So, to clarify. You want to build and run http-backend, ws-backend, and web as its own service although they live in the same folder. Do they each have their own package.json and is packages its own thing or just code to be referenced


9 months ago

^same root folder


sim
FREE

9 months ago

Can you share you share what you have attempted so far?


sim
FREE

9 months ago

This may help you out

You deploy from the root directory and would need specific scripts in your root package.json to build and start only the api app, then set those build and start scripts in your service settings on Railway.

https://station.railway.com/questions/how-to-apply-a-turborepo-monorepo-with-1e22b94c


sim
FREE

9 months ago

They have good documentation you can try following as well https://docs.railway.com/guides/monorepo


Loading...