Ignore directory in watch paths

i have a mono repo project in go with a folder for frontend. I setup two services one for frontend one for backend. For the backend i want to configure watch paths to ignore the frontend. I currently have **/*.go,!/frontend/** in the watch paths but my backend always skips building. How can i make this work? ProjectID: e649edf0-e7e9-4b6d-8516-8155a5adf4a2
9 Replies
Percy
Percy15mo ago
Project ID: e649edf0-e7e9-4b6d-8516-8155a5adf4a2
Brody
Brody15mo ago
do you have the root directory set to the applicable folder?
mrCunningham
mrCunninghamOP15mo ago
i have the root directory set to /
Brody
Brody15mo ago
your go app is in the root directory?
mrCunningham
mrCunninghamOP15mo ago
yeah
Brody
Brody15mo ago
so normally for an isolated monorepo like what you have, you would put the backend go app in a backend folder at the root, and the frontend in a frontend folder also at the root, then you would set the root directory to the appropriate folder for the service, doing this railway won't rebuild if nothing has changed in the root directory you have set
mrCunningham
mrCunninghamOP15mo ago
so there isnt a way to say "watch all files but exclude the frontend directory"?
Brody
Brody15mo ago
im sure there is, I was just saying the correct way to go about this try !frontend/ but this is untested feel free to play around yourself through!
mrCunningham
mrCunninghamOP15mo ago
👍
Want results from more Discord servers?
Add your server