2

这是 Web.config 的一部分

  <endpoint address="http://localhost:1001/" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_I" contract="API.I" name="BasicHttpBinding_IStore" />      

我不想在使用 Octopus 部署时将 address="http://localhost:1001/" 更改为 address="http://10.133.1.5:1001/" 或任何其他内容。我阅读了文档但不明白,任何人都可以帮助我解决问题。谢谢

4

1 回答 1

4

您可以在项目中进行 web.config xml 转换并使用 Octopus 中的 XML 转换功能:http: //docs.octopusdeploy.com/display/OD/Configuration+files

或者您可以使用 Octopus 变量并替换 Octopus 中文件中的变量:http: //docs.octopusdeploy.com/display/OD/Substitute+Variables+in+Files

于 2016-05-05T13:44:18.437 回答