R
Railway•3y ago
scatter

Does railway selectively deploy from monorepos?

If your project uses the /backend subdirectory and you push a commit that doesn't modify files there, will a deploy be triggered? Is there a way to configure this yourself so it works with something like nx (ie when you can't set the subdirectory but still want to deploy based on which directories were changed)?
3 Replies
Faraz
Faraz•3y ago
Hey, just trying to understand your issue. Are you using NX at the moment? And if I understand correctly, you'd like for your service to be deployed even when you don't necessarily make changes directly to the backend subdir?
scatter
scatterOP•3y ago
yes, I think Settings > Watch Paths is what I'm looking for
Faraz
Faraz•3y ago
Perhaps watch paths in combination with the root directory might work for you. We also have a user-contributed guide specifically for NX projects coming out today. It uses Railway + GH actions to manage when and when not to deploy. So keep an eye out for that as well. 😄
Want results from more Discord servers?
Add your server