8 months ago
Hello,
Repo: https://github.com/mhofwell/fpl-chat-app
This repo contains a client, server and a set of cron jobs as node.js services. Core problem is that I am having trouble ensuring that the entire deployment doesn't restart when I push code to a particular app.
Here is the pattern i'm following based on what I can understand from the docs:
Source Repo: mhofwell/fpl-chat-app
Root Directory (for my nextjs app): /fpl-nextjs-app
Watch Path: /fpl-nextjs-app/**
I included some images to demonstrate.
.
├── cron/ # Scheduled job components
├── fpl-mcp-server/ # Backend server
└── fpl-nextjs-app/ # Next.js frontend
Pushing a change to a file inside fpl-nextjs-app redeploys everything. I've been tinkering with this for a day and couldn't figure it out. Let me know what I'm doing wrong…
25 Replies
8 months ago
hello, please note that the railway team doesn't guarantee response times for hobby users, responses from the team for hobby users are offered at a best effort basis.
Thanks Brody. I did notice a number of other hobby users receving support quickly with more recent posts…
Is this a low priority item for your team?
8 months ago
I think I've already replied to your support ticket on our central station?
Ah well I didn't see that.. I'm new here, not sure where the central station is?
I found central station… well I don't seem to have anything there in inbox or threads. If you have the URL to your reply, I'd be happy to have a look.
8 months ago
apologies, I may be thinking of a similar thread from a different user
I set up a thread on Central Station as well:
https://station.railway.com/questions/monorepo-deployment-issues-9d696d5a
8 months ago
we would ask you not to create duplicate posts
Sure, no problem. Like I said I'm new here, just trying to figure out based on your comments where the right place to post for help is.
Hi Brody 👋 I upgraded to a Pro plan. Looking forward to resolving this. Cheers.
8 months ago
you shouldnt need a watch path set when you have a root directory set, have you tried without watch paths?
Morning 👋 , just tested it out:
Removed all watch paths.
Changed the readme in /queue-service and pushed code to my dev branch. All the services I have on Railway then restarted.
FYI I had the same issue with watch paths because I have a mono repo with a few services with separate dockerfiles etc..
i followed the docs example for watch paths where the paths are all prefixed with a / as if that represents the root of the repo… that did not work, and all the services kept getting rebuilt every time I pushed to the repo.
I fixed it for my case by making the watch paths relative.. ie. not prefixed with a /
so i have my watch paths as:
libs/xx
libs/yyy
package.json
yarn.lockthis seems to work flawlessy… now I don't know if I was doing something wrong, or if the docs were just wrong, but maybe this will work for you as well.
I .. I think that solved it. Will verify with another repo change. I was following the docs examples as well with the leading /
Works on 3 separate repos for the project. Only those repos redeploy! I salute you @Arnór <:HappySeal:1278652191791386698>
8 months ago
Amazing! Much appreciated @Arnór <:salute:1137099685417451530>
8 months ago
Thanks for helping
8 months ago
!s
Status changed to Solved medim • 9 months ago