tfsaggregator / tfsaggregator-webhooks

WARNING: the team is no more maintaing this version. See aggreggator-cli instead.
https://github.com/tfsaggregator/aggregator-cli
19 stars 22 forks source link

Not picking up changed policyFilePath #20

Closed jdshkolnik closed 6 years ago

jdshkolnik commented 6 years ago

Hi,

I edited web.config to have a different static value for policyFilePath but it still keeps looking to HelloWorld.policies, even after I restarted the app service.

codeknox commented 6 years ago

I have exactly the same issue. Any workarounds?

jdshkolnik commented 6 years ago

I just kept using the original HelloWorld file.

andrew-seatonpartners commented 6 years ago

the only way I got this working when deploying to Azure was to ensure that the different name was specified at the point of deploying with the app

tireyjp commented 6 years ago

This is due to the deploy adding an appsettings override to the AppService itself. If you open your web hooks AppService in Azure, then go to the "Application settings" tab you will see the policyfile entry that was created during the deploy. This will override anything you place in the web.config. So you can either update the value here, or just delete it so it uses what is in the web.config.