https://metaplay.io logo
Overriding options file name for environment
# questions-and-feedback
a
We have 2 different environments and both have environment type “Development”. We need separate options for those but both seem to use the same Options.dev.yaml. Can I override the options file name for environment? Or change the environment type easily?
j
Assuming you are on R32, in your metaplay-project.yaml file, you can define the serverValuesFile:
Copy code
- name: Auto-deploy from develop {p2-eu}
    hostingType: metaplay-hosted
    humanId: lovely-wombats-build-nimbly
    type: development
    stackDomain: p2-eu.metaplay.dev
    serverValuesFile: Backend/Deployments/nimbly-server.yaml
    botclientValuesFile: Backend/Deployments/nimbly-botclients.yaml
And in that file you can define the options files:
Copy code
# Configuration files to use
config:
  files:
    - "./Config/Options.base.yaml"
    - "./Config/Options.dev.yaml"
    - "./Config/Options.nimbly.yaml"
There's some extra info at: https://docs.metaplay.io/game-server-programming/how-to-guides/working-with-runtime-options.html