The CLI example for deploying a template implicitly suggests that Railway's platform supports setting a subset of env vars when deploying a template:
railway deploy -t postgres -v "MY_SPECIAL_ENV_VAR=1" -v "Backend.Port=3000"
This appears to not be the case via the GraphQL API, and a maximalist explicit config is required in the serializedConfig input to the mutation.
I'm wondering whether there's something I've missed? It feels rather fragile to maintain an explicit full config in my shell script I'm building to deploy the template in an automated context.
The full serialized config is almost 1000 lines of JSON, and I'll have to manually keep it up-to-date with the template by deploying via the web GUI and inspecting the network tab. This is a DX nightmare.
The template has default ENV values for a reason. I'd like to be able to merge a subset of ENV vars in the mutation and have the rest applied with their defaults. It seems like the CLI performs this, I'm wondering how it achieves it? I'm not a rust dev so not interested in figuring out the CLI myself at this stage. Would appreciate some insight, thank you!