Closed davidebbo closed 8 years ago
I think to fix this we might need to change the way Azure transforms files to keep track of the state of applicationhost.config before it applies the xdt in the site folder.
The general Azure transform flow today is:
D:\home\SiteExtensions
foldersD:\home\site\applicationhost.xdt
Let's say that Azure kept track of applicationhost.config
after step 3 but before step 4. That would allow your extension to do the following:
%APP_POOL_CONFIG%
D:\home\site\applicationhost.xdt
, and apply it yourselfThis way, the user could keep going back and tweaking things, and it should do always the correct thing, never losing previous work. At least in theory! :)
What do you think?
Thank you for the explanation of the behavior of the Kudu. You're right, the last operation is not recorded issue is very important.
I think available applicationhost.config.base
file. maybe applicationhost.config.base
is created after step 2 has been completed.
applicationhost.config.base
(applied pre-installed extension)D:\home\SiteExtensions
folders in IIS ManagerD:\home\site\applicationhost.xdt
and apply it.and need "All Reset" button :smile_cat:
I published "IIS Manager" 1.0.2 in Site Extension Gallery. Should this issue has been greatly improved :)
Wow, it works superbly now. Very impressive!!
I actually have an idea to make it even a little bit better, but I'll open a separate issue for it :)
I love this extension, and have been wanting something like it for a long time!
There is one part of the workflow that is not ideal, although it is hard to fix. Steps:
<add value="foo.htm" />
to thedefaultDocument
list<add value="bar.htm" />
. Make this change and add it after foo.htm.bar.htm
. So if you save it, you've lost thefoo.html
part of the transformOf course, it's clear why it works the way it does, given that it always starts with the fully transformed config from
%APP_POOL_CONFIG%
, which already has thefoo.htm
transform.It's not an easy problem to fix, but we can brainstorm ideas :)