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-8155a5adf4a29 Replies
Project ID:
e649edf0-e7e9-4b6d-8516-8155a5adf4a2
do you have the root directory set to the applicable folder?
i have the root directory set to /
your go app is in the root directory?
yeah
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
so there isnt a way to say "watch all files but exclude the frontend directory"?
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!👍