DEV Community

Discussion on: How would you deploy parts of a monorepo in CI?

simonlegg profile image
Simon Author

Yeah, so assume the web and api were two separate standalone services, deployed to different servers, I guess that wouldn’t work?

kingkool68 profile image
Russell Heimlich

You could use a Continuous Integration pipeline that automatically commits the changes to two different repos in a folder structure and deploy them to production as two separate repos while maintaining and authoring in one repo.

Or deploy the monorepo to production in a non-public folder and automatically move the two directories to different locations in the servers web root.

With a bit of scripting you could make this work.