Can't deploy monorepo, can't change root path
abullity
PROOP

2 years ago

Hello, I'm trying to deploy monorepo (two isolated services), the documentation says that you should change the root path, yet I don't have such option available on Railway project dashboard. furthermore it's not clear how would I setup two independent services, would they require 2 separate railway.json config files for each service? I couldn't find any exhaustive resource on this topic.
Any help would be much appreciated!

14 Replies

abullity
PROOP

2 years ago

project-id: 259d1b72-3a1f-4f53-b7d3-1be3161c1e4a


brody
EMPLOYEE

2 years ago

the root directory setting would be found in the service settings tab.

once you have your project open there's a + New button in the top right, deploy two services from the same repo, once done set the applicable root directory for each service, I don't think you'd need a railway.json for this.

but can you tell me a bit more about your frontend? what's the tech stack?


abullity
PROOP

2 years ago

I'm using Flowise embedded tag to embed in a plain react project built with vite


brody
EMPLOYEE

2 years ago

interesting


abullity
PROOP

2 years ago

the only input fields where I can specify any kind of path in my service settings is Healthcheck path and** Watch paths**


abullity
PROOP

2 years ago

or I'm an idiot and missing something very obvious


brody
EMPLOYEE

2 years ago

please look a little closer there is definitely a root directory setting


abullity
PROOP

2 years ago

which sub section would it be? I could provide screenshot


brody
EMPLOYEE

2 years ago

Source


abullity
PROOP

2 years ago

Ok, there's a small option to specify it, thank you! I'm an idiot


brody
EMPLOYEE

2 years ago

not at all, its easy to overlook


abullity
PROOP

2 years ago

Thank you <@539512869780455445> I should be able to deal with the rest, thanks to your insight!


brody
EMPLOYEE

2 years ago

no problem!


abullity
PROOP

2 years ago

For those who might've also overlooked


Loading...