Monorepo Deployment Issues
bigviking
PROOP

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…

Solved

25 Replies

bigviking
PROOP

8 months ago

41cdc7cd-f1a1-4445-b931-699b4b4215e4


bigviking
PROOP

8 months ago

Any help would be awesome thx 🙂


bigviking
PROOP

8 months ago

Hello?


bigviking
PROOP

8 months ago

🙂


brody
EMPLOYEE

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.


bigviking
PROOP

8 months ago

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?


brody
EMPLOYEE

8 months ago

I think I've already replied to your support ticket on our central station?


bigviking
PROOP

8 months ago

Ah well I didn't see that.. I'm new here, not sure where the central station is?


bigviking
PROOP

8 months ago

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.


brody
EMPLOYEE

8 months ago

apologies, I may be thinking of a similar thread from a different user


bigviking
PROOP

8 months ago

no problem.


bigviking
PROOP

8 months ago


brody
EMPLOYEE

8 months ago

we would ask you not to create duplicate posts


bigviking
PROOP

8 months ago

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.


bigviking
PROOP

8 months ago

Hi Brody 👋 I upgraded to a Pro plan. Looking forward to resolving this. Cheers.


brody
EMPLOYEE

8 months ago

you shouldnt need a watch path set when you have a root directory set, have you tried without watch paths?


bigviking
PROOP

8 months ago

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.


arnorhs
PRO

8 months ago

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.lock

this 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.


bigviking
PROOP

8 months ago

I'll give it a shot, thanks Arnór


bigviking
PROOP

8 months ago

I .. I think that solved it. Will verify with another repo change. I was following the docs examples as well with the leading /


bigviking
PROOP

8 months ago

Works on 3 separate repos for the project. Only those repos redeploy! I salute you @Arnór <:HappySeal:1278652191791386698>


bigviking
PROOP

8 months ago

This is solved.


medim
MODERATOR

8 months ago

Amazing! Much appreciated @Arnór <:salute:1137099685417451530>


medim
MODERATOR

8 months ago

Thanks for helping


medim
MODERATOR

8 months ago

!s


Status changed to Solved medim 9 months ago


Loading...