【问题标题】:How to kick start web services after publishing using powershell script or any other way使用 powershell 脚本或任何其他方式发布后如何启动 Web 服务
【发布时间】:2014-07-03 09:18:41
【问题描述】:

我目前正在使用八达通发布网络服务。有没有办法在使用power shell脚本或任何其他方式自动发布后启动服务。

谢谢

【问题讨论】:

标签: web-services powershell autostart octopus-deploy


【解决方案1】:

如果您的目标是启动您的应用程序池,以便第一个请求不会比正常情况花费更长的时间,您可以在 post-deploy.ps1 中发出以下命令

Invoke-WebRequest -Uri "http://localhost/SomeTestPage"

如果你有 .NET 4:

http://weblogs.asp.net/scottgu/auto-start-asp-net-applications-vs-2010-and-net-4-0-series

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-07-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-10-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多