Railway triggers deploy on commits outside watch path in mono repo setup
aneeshsoni
HOBBYOP

9 months ago

Hey folks I have a mono repo with the following setup: apps folder in the root directory with two separate folders, one for the iOS code and another for the python code (see below)

project/

|─ apps/

|── python/

|── iOS/

I only have the python directory, FastAPI app, deployed as a service on Railway and have setup the watch path as /apps/python. My friend works on the /apps/iOS directory and isn't part of the railway project but when they push to main Railway keeps asking if I want to deploy their commit, "Deploy this commit from an external contributor?", even though the only changes were to the /apps/iOS directory.

I was under the impression that the watch path wouldn't even look at changes made in other directories.

Closed

8 Replies

That's a fair assumption, I presume you have watch paths enabled?


Status changed to Awaiting User Response Railway 9 months ago


angelo-railway

That's a fair assumption, I presume you have watch paths enabled?

aneeshsoni
HOBBYOP

9 months ago

Yup I have watch paths enabled like so: /apps/python


Status changed to Awaiting Railway Response Railway 9 months ago


9 months ago

I believe the "needs approval" stuff trumps the watch path ATM

However, that's probably not correct so I will check and escalate


Status changed to Awaiting User Response Railway 9 months ago


Railway
BOT

7 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 7 months ago


jake

I believe the "needs approval" stuff trumps the watch path ATMHowever, that's probably not correct so I will check and escalate

aneeshsoni
HOBBYOP

7 months ago

Are watch paths defined relative to the root directory that's set or relative to the overall repo?

For instance I currently have the root directory set as: "apps/python"

So should the watch path also be "apps/python" or will watch paths be defined to start per the root directory setting of "apps/python"? If yes, I suppose adding "apps/python" to watch paths would result in it looking "apps/python/apps/python"


Status changed to Awaiting Railway Response Railway 7 months ago


Relative it should be.


Status changed to Awaiting User Response Railway 7 months ago


Railway
BOT

7 months ago

Hello!

We've escalated your issue to our engineering team.

We aim to provide an update within 1 business day.

Please reply to this thread if you have any questions!


I see you found out that they are indeed absolute paths?


Railway
BOT

7 months ago

✅ The ticket "Code snapshot creation issue" has been marked as completed.


Status changed to Closed brody 7 months ago


Loading...