How to Apply a Turborepo (Monorepo) with Different Apps and Libraries

groobartTRIAL

a year ago

ChatGPT
How can I configure to upload my Turbo monorepo that has API apps with NestJS and shared db and types libraries, which are shared with another app that is the web app, but I want to deploy only the API within the apps?

my-monorepo/
├── apps/
│ ├── api/ # NestJS API application
│ └── web/ # Web application
├── libs/
│ ├── db/ # Database related libraries
│ └── types/ # Shared types
├── package.json
├── turbo.json
└── tsconfig.json

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

1 Replies

a year ago

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.


How to Apply a Turborepo (Monorepo) with Different Apps and Libraries - Railway Help Station