The web.config in my nupkg
file outputs the following:
<host>
<baseAddresses>
<add baseAddress="#{Url.AccountService}"/>
</baseAddresses>
</host>
According to Octopus' documentation on Substitute variables in files, the syntax above should be ok as long as I have the variable defined in my project. Which, I do.
I'm also deploying this package only to the DEV
environment at this time.
Also, in the Deploy Website
step, Under Substitute Variables in Files
> I have web.config
added to the list of files to perform the substitution on.
However, when the deployment goes through, octopus doesn't substitute this variable with the intended value. What am I doing wrong?
*.config
). One thing that stood out immediately is the usage of the dot inUri.AccountService
. Have you tried to remove the dot and see substitution occurs? We do not use a 'dot' in our variable names, so I am uncertain if this syntax is allowed. If that doesn't work, try using*.config
and see observe the outcome. – Brien FossDEV
orPROD-BLUE
? – Brien FossDEV
. I updated the question with the screenshot for your reference. – Ali Khakpouri