What's the best way to start services in a monorepo with a lot of services?
Looking at the docs I see commands like
npm run start:backend
so how does railway now which service is which? https://docs.railway.app/guides/monorepo#deploying-a-shared-monorepo
I have a turborepo with golang services in the following directory structure
/root
--/services
-- (golang services 1 folder each)
--/packages
--/apps
So now I am not sure how to start each monorepo service in each railway service59 Replies
Project ID:
f78d75b5-8972-4d61-8517-22bbccefb41e
f78d75b5-8972-4d61-8517-22bbccefb41e
Do i need to add each service start command to the root package.json?
@Brody This is what I have:
root package.json
yes you do, like a
start:backend
and start:frontend
etcit does fail build though
let me run that script for logs
beat you
dang
is pnpm-lock.yaml absent?
does the service need to have that? it's a golang app
it's in the root
does the go app need to access code from any other folder?