Can't deploy monorepo, can't change root path
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!Solution:Jump to solution
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?...14 Replies
Project ID:
259d1b72-3a1f-4f53-b7d3-1be3161c1e4a
project-id: 259d1b72-3a1f-4f53-b7d3-1be3161c1e4a
Solution
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?I'm using Flowise embedded tag to embed in a plain react project built with vite
interesting
the only input fields where I can specify any kind of path in my service settings is Healthcheck path and Watch paths
or I'm an idiot and missing something very obvious
please look a little closer there is definitely a root directory setting
which sub section would it be? I could provide screenshot
Source
Ok, there's a small option to specify it, thank you! I'm an idiot
not at all, its easy to overlook
Thank you @Brody I should be able to deal with the rest, thanks to your insight!
no problem!
For those who might've also overlooked
![No description](https://cdn.answeroverflow.com/1211392582144360509/Screenshot_from_2024-02-25_23-15-03.png)