【问题标题】:How can I enable <deployment retail="true" /> by default on Windows Azure?如何在 Windows Azure 上默认启用 <deployment retail="true" />?
【发布时间】:2012-11-28 09:39:22
【问题描述】:

似乎使用 是 ASP.NET 应用程序公认的最佳实践,但它似乎在 Windows Azure 上默认不启用。是否可以在 Web 角色和/或网站上默认启用?

【问题讨论】:

    标签: asp.net deployment azure machine.config


    【解决方案1】:

    我认为您可以通过启动任务来执行此操作。在此处查看@smarx 的答案:Modifying machine.config on Azure compute instances

    运行 appcmd 的批处理文件可能是最简单的方法 IIS 设置。

    一些资源:

    MSDN: How to Define Startup Tasks for a Role

    Azure: How to execute startup tasks for each site entry at webrole?

    Utilizing the Power of Startup Tasks in Your Windows Azure Web Role

    而且,特定于从启动任务管理 machine.config:

    https://github.com/Aaronontheweb/azure-webroleperformance-scripts

    【讨论】:

      猜你喜欢
      • 2011-10-14
      • 2016-06-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多