-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
Description
Problem
Running edgly service get with -e <non-prod> pointing to any non production environment will overwrite the (production) domains in the service.json.
However, the production domains are currently expected to be in the stored service.json, they are not in the edgly.yaml. If they get removed, they are lost and updating the production service would change its domain names now. And furthermore the mapping to other domains for other environments (defined in edgly.yaml) won't work anymore either since it's based on replacing by the production hostnames.
Solution
Options:
- Detect this and avoid the overwrite when doing
edgly service get -e <non-prod> - Change the configuration in
edgly.yamlto include the list of production domains there as well- and on
service updatealways replace the domain list inservice.jsonwith the one fromedgly.yamlfor the selected environment - basically ignore what's persisted in
service.json> domains - possible format
env: production: id: 12345 domains: - "api.example.com" - name: "www.example.com" comment: "example website" stage: id: 67890 domains: - "api-stage.example.com" - "www-stage.example.com"
- and on