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
Percy14mo ago
Project ID: e649edf0-e7e9-4b6d-8516-8155a5adf4a2
Brody
Brody14mo ago
do you have the root directory set to the applicable folder?
mrCunningham
mrCunningham14mo ago
i have the root directory set to /
Brody
Brody14mo ago
your go app is in the root directory?
mrCunningham
mrCunningham14mo ago
yeah
Brody
Brody14mo 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
mrCunningham14mo ago
so there isnt a way to say "watch all files but exclude the frontend directory"?
Brody
Brody14mo 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
mrCunningham14mo ago
👍
Want results from more Discord servers?
Add your server