Quantcast
Channel: Node.js Tools for Visual Studio
Viewing all articles
Browse latest Browse all 4630

Commented Issue: Publish to cloud service didn't use web.cloud.config [479]

$
0
0
I changed the startup file to be wrong in web.config, but kept it correct in web.cloud.config. Then publish to cloud service. Site doesn't work. I remote connect to the azure machine and noticed that web.config and web.cloud.config are different.
Comments: Per my original comment on this topic, I have no issue with the setup_web.cmd doing the config file overwrite, except THAT IT DOESN'T HAVE ANY EFFECT. I mean, it certainly overwrites the web.config in approot, for all the good that will do you. But unfortunately, Node and iisnode both use the web.config in sitesroot\0 (no idea how that even gets there, but it has none of the changes that setup_web.cmd does - it's a literal copy of the files for the web role). Whatever part of the publish/deploy that writes the web.config that is actually used (the one in sitesroot, just in case that's not clear) needs to work. I honestly don't care if it's via setup_web.cmd or transformations, but as far as I can tell, neither one of them work with the alpha. For now, I've taken to just cutting and pasting the proper content into web.config before deploying (essentially doing the overwrite/transformation manually each time).

Viewing all articles
Browse latest Browse all 4630

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>