usyncbackoffice config transform during release pipeline
Hi Kevin,
working with usync for the first time here with the following setup:
Laptop development environment
VPS staging enviroment
VPS production environment
Each environment has its own database so first installed Umbraco nuget package in VS without running the installation process and deployed it to staging and production.
Then we have run the installer local on laptop, on staging server and on production server.
So each environment is completely seperated.
I have installed uSync local and disabled import but in the release pipeline to staging and production this should be set to true.
I am using VSTS Devops for CI/CD so was wondering if we can transform the usyncbackoffice.config just like a web config using:
Yes that should work - The web.config value will take precedence over the one in the uSync8.config.
So if its present in web.config it will always win, but if the value is put in via a transform (e.g it's in web.release.config) then it would be true on your builds and not your local site.
usyncbackoffice config transform during release pipeline
Hi Kevin,
working with usync for the first time here with the following setup:
Each environment has its own database so first installed Umbraco nuget package in VS without running the installation process and deployed it to staging and production.
Then we have run the installer local on laptop, on staging server and on production server.
So each environment is completely seperated.
I have installed uSync local and disabled import but in the release pipeline to staging and production this should be set to true.
I am using VSTS Devops for CI/CD so was wondering if we can transform the usyncbackoffice.config just like a web config using:
https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/transforms-variable-substitution?view=vsts
or will this fail and should we do it in another way or do we have to set this to false always and run the import manual on each environment?
/Michaël
We use SlowCheetah plugin file for having config transforms on other files than web.config
Dave
Dave,
thanks will have a look at it!
/Michaël
Worked perfectly Dave! Thx!
/Michaël
there are a couple of things you can transform directly in the web.conifg (and they over take the settings in the file)
will override the settings in the uSyncBackoffice.config file.
but personally on VSTS i use parameters.xml
https://docs.microsoft.com/en-us/aspnet/web-forms/overview/deployment/web-deployment-in-the-enterprise/configuring-parameters-for-web-package-deployment
which looks something like this :
and when setup will replace the value from the VSTS Variables (in this case
uSync.HandlerGroup
)Hi Kevin
Is it also possible to override
Folder
via transform of web.config?e.g. locally in
Config/uSync8.config
:and then use this in web.config transform.
Hi,
Yes that should work - The web.config value will take precedence over the one in the uSync8.config.
So if its present in web.config it will always win, but if the value is put in via a transform (e.g it's in web.release.config) then it would be true on your builds and not your local site.
is working on a reply...