R
Railwayβ€’6mo ago
CiaranSweet

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
Percy
Percyβ€’6mo ago
Project ID: cb5aa03d-c72c-426c-8dd7-f109b7f03b5d
CiaranSweet
CiaranSweetβ€’6mo ago
cb5aa03d-c72c-426c-8dd7-f109b7f03b5d
Brody
Brodyβ€’6mo ago
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
CiaranSweet
CiaranSweetβ€’6mo ago
Is that a hard impossibility or something just not yet implemented?
Brody
Brodyβ€’6mo ago
not implemented
CiaranSweet
CiaranSweetβ€’6mo ago
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
Brody
Brodyβ€’6mo ago
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)
CiaranSweet
CiaranSweetβ€’6mo ago
Yeah understandable, I realise monorepo is probably rarer than the other usages πŸ˜… spoilt/used to everything being in one place!
Brody
Brodyβ€’6mo ago
monorepos are very common especially people asking for help deploying their monorepos
CiaranSweet
CiaranSweetβ€’6mo ago
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
Brody
Brodyβ€’6mo ago
correct
CiaranSweet
CiaranSweetβ€’6mo ago
Okie doke! Well it's late, I'm sure I'll be back with more πŸ˜‚ Thanks for the responses so far Brody!
Brody
Brodyβ€’6mo ago
no problem πŸ™‚