46
Monorepo / Root Directory Support
complete
Matthew Sweeney
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.
Activity
Newest
Oldest
Jake Cooper
complete
Apologies this should be completed not closed!
Jake Cooper
closed
Support is live for this and docs have been updated
For ignoring builds, please see this ticket (https://feedback.railway.app/feature-requests/p/ignored-build-step)
Dan Croak
From Dashboard > "+ New Project" > "Deploy From Repo" screen, could the root directory form field be present so the initial deploy doesn't fail?
Jake Cooper
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?
A
Angelo Saraceno
in progress
Moving back to In Progress because our platform does in deed rebuild for subfolders for linked services.
Thanks for the catch Igor!
Jake Cooper
Angelo Saraceno: I think we can move this still to completed, and create another ticket for "ignore build directories"
A
Angelo Saraceno
complete
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
Igor Gassmann
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.
A
Angelo Saraceno
in progress
Jake Cooper
Merged in a post:
Ability to select a paticular file to read deployment config from.
Saurav Adhikari
For example: I have a monorepo and i want to deploy two projects. So, i want to be able to say to railway that use this dockerfile for project. This way i can create two dockerfile for each service inside their respective folder and use them.
Procfile doing the same thing works great as well.
J
Jake Runzer
planned