5 years ago
Currently, when GitHub Triggers are used, every push to the repository triggers a new Deployment - this renders monorepo usage at best inefficient (builds triggered even when changes only impact the frontend) and at worst totally blocking (frontend errors the deployment as not intended to be built).
To resolve this, the ability to define a root directory when using a project from a monorepo must be added.
4 Replies
Status changed to Planned jr • over 4 years ago
Status changed to In Progress angelo-railway • over 4 years ago
4 years ago
Hey! We have had directory support since this issue was posted and with Metro we have full monorepo support. Check it here: https://docs.railway.app/railway-metro
Status changed to Completed angelo-railway • about 4 years ago
4 years ago
Hey! We have had directory support since this issue was posted and with Metro we have full monorepo support. Check it here: https://docs.railway.app/railway-metro
Angelo Saraceno: The feature doesn't seem to be fully satisfied yet. Every push to a monorepo GitHub repository still triggers a new deployment for every service regardless of their "Root Directory" configuration.
4 years ago
Moving back to In Progress because our platform does in deed rebuild for subfolders for linked services.
Thanks for the catch Igor!
Status changed to In Progress angelo-railway • about 4 years ago
4 years ago
From Dashboard > "+ New Project" > "Deploy From Repo" screen, could the root directory form field be present so the initial deploy doesn't fail?
4 years ago
From Dashboard > "+ New Project" > "Deploy From Repo" screen, could the root directory form field be present so the initial deploy doesn't fail?
Dan Croak: The vast majority of projects don't actually need this so we didn't want to put it upfront and confuse people
We've toyed with the idea of potential autodetection but it's very hairy and a ton more work
Got ideas beyond that?
4 years ago
Moving back to In Progress because our platform does in deed rebuild for subfolders for linked services.
Thanks for the catch Igor!
Angelo Saraceno: I think we can move this still to completed, and create another ticket for "ignore build directories"
4 years ago
Support is live for this and docs have been updated
https://docs.railway.app/deploy/monorepo
For ignoring builds, please see this ticket (https://feedback.railway.app/feature-requests/p/ignored-build-step)
Status changed to Archived jake • almost 4 years ago
4 years ago
Apologies this should be completed not closed!
Status changed to Completed jake • almost 4 years ago