Export railway.json from Dashboard
Coming from a big IaaC background i'd love to have my config in my repo alongside each service (I'm running what you're defining as an Isolated Monorepo)
Is there a way to dump the settings of each of my services as they are in the dashboard (having set them up manually) to railway.json files I can stick in the respective directories in the monorepo?
Further to that, if I had 3 services say, and each had a railway.json file, could I then theoretically wipe my project in the dashboard and with the CLI spin up the monorepo that way?
Thanks!
13 Replies
Project ID:
cb5aa03d-c72c-426c-8dd7-f109b7f03b5d
cb5aa03d-c72c-426c-8dd7-f109b7f03b5d
you can export the railway.json file from the details tab of a given deployment.
there are things (like the root directory) that you can not set via the cli so a deployment from just a railway.json is not possible for a monorepo
Is that a hard impossibility or something just not yet implemented?
not implemented
Gotcha π cool thanks, I'll have a look at the export.
Is there any chance someone can sanity check my setup at some point? Want to reduce the dashboard usage if I can and focus more on in-repo management
there's only so much the railway.json can configure tbh
for instance environment variables will only ever be managed in the dashboard
(unless someone wants to implement it in the cli)
Yeah understandable, I realise monorepo is probably rarer than the other usages π
spoilt/used to everything being in one place!
monorepos are very common
especially people asking for help deploying their monorepos
I guess for me, having a project level railway.json so that I can say 'this service is this directory', so I guess just nested railway.jsons would be neat.
If I understand it correctly now, I can only do it per service and the project level stuff is always on the dashboard
correct
Okie doke!
Well it's late, I'm sure I'll be back with more π Thanks for the responses so far Brody!
no problem π