13 days ago
I get this error when it tries to run the script /home/runner/work/_temp/0c8e73e8-40e7-4079-8d58-901f6480a484.sh: line 1: ./deployment/railway-trigger.sh: Permission denied
0 Replies
13 days ago
That is a very outdated blog post (3+ years old), have you checked these docs? https://docs.railway.com/guides/monorepo
13 days ago
There, it shows how to deploy shared and isolated monorepos, as well as how to define a watch path to prevent code changes in one service from triggering a rebuild of other services in said monorepo.
I am using NX…. this page doesn't mention how to take advantage of nx affected
what if some code changes in a library that affects a few projects, how will it know which to deploy?
11 days ago
With the deprecation of Nixpacks, we don't have specific configs for NX Monorepos anymore, they should be treated like a normal monorepo.
For the NX affected/selective deploys you would need to use a CI (like the GH Actions mentioned in the blog post you linked) to build the affected packages and trigger a Railway deployment just for those services.
I can't seem to figure out how to "trigger a deployment". Do I need to build a docker container like I was on kube? do I somehow upload the build assets from nx build?
11 days ago
yeah.
11 days ago
"I can't seem to figure out how to "trigger a deployment""
You can use watch paths, when files on determined path are updated the service gets redeployed.
is there some way I can get some 1 on 1 support call to ask a few questions and figure this out cause I'm really stuck, I see a good vision with railway here but I am completely lost on how to get this project going
11 days ago
You don't "build a docker container" or "upload NX build outputs"
and only build and deploys those apps. a watch path on the apps directory won't capture that
11 days ago
Then you would add that library path to the dependent service's watch path, it allows multiple watch paths and follows a gitignore style.
that would be crazy to maintain….. the libraries are automitically detected based on which app "imports" that library
like this is a massive monorepo, its not even always clear which apps depend on which lib, and which lib depends on another lib, without looking at a huge graph
11 days ago
Then you'd have to use a CI flow to deploy just the affected apps, I'm sure you can do that through a GH Actions Workflow but I cant really help you on this since NX Monorepos are a bit out of my scope.
ok so what exactly do I deploy?
I run nx build oauth-api
outputs go to dist/apps/oauth-api
what do I do to deploy that?
these are just nodejs apps that were built into a docker container, pushed to aws, loaded by kubernetes… if I don't need to do any of that, then what do I do?