Nx monorepo deployment Help
Project ID : 19cd7c1b-5614-4fd8-960c-dd3cd788a832
I am writing multiples node apps that contains a graphql server, I am able to create builds and serve the app locally and I am able to access the graphql playground as well.
How can I deploy these apps, the nx monorepo also contains a lib folder that holds my shared code.
7 Replies
Project ID:
19cd7c1b-5614-4fd8-960c-dd3cd788a832
with an nx repo you dont need to set a root directory in railway, you only need to have specific scripts (in the package.json at the root) to build and start each app in the nx repo, like a
build:api
script that would only build the api app, and a start:api
script that would only start the api app (I think nx has some type of filter flag?) then you would only need to update the build and start commands in the service settings to the specific build and start scripts that build and start the api app, and you'd need to have a railway service for every app in your nx repo you want to host on railwayCan I have a railway service like railway.app/{app}
{app} is the app name
your app would be on a subdomain {app}.up.railway.app
Umm, do you have any documentation that I can use?
I mean there's railways docs https://docs.railway.app/
but what are you looking for specifically?
if you are looking for docs on how to add the app specific build and start commands like I mentioned, you would need to look at the NX docs for that
Hi, It's resolved now thankyou