You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.yaml to include the list of production domains there as well
and on service updatealways replace the domain list in service.json with the one from edgly.yaml for the selected environment
basically ignore what's persisted in service.json > domains
The text was updated successfully, but these errors were encountered:
alexkli
changed the title
service get -e stage will overwrite the domains in service.json
service get: from other env will overwrite the domains in service.json
Feb 22, 2025
Problem
Running
edgly service get
with-e <non-prod>
pointing to any non production environment will overwrite the (production) domains in theservice.json
.However, the production domains are currently expected to be in the stored
service.json
, they are not in theedgly.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 inedgly.yaml
) won't work anymore either since it's based on replacing by the production hostnames.Solution
Options:
edgly service get -e <non-prod>
edgly.yaml
to include the list of production domains there as wellservice update
always replace the domain list inservice.json
with the one fromedgly.yaml
for the selected environmentservice.json
> domainsThe text was updated successfully, but these errors were encountered: